]> www.infradead.org Git - users/hch/block.git/commit
drbd: refactor drbd_reconsider_queue_parameters
authorChristoph Hellwig <hch@lst.de>
Fri, 23 Feb 2024 07:34:16 +0000 (08:34 +0100)
committerChristoph Hellwig <hch@lst.de>
Mon, 4 Mar 2024 14:08:01 +0000 (07:08 -0700)
commitba5b53e227dd183cf63b4acc3315a3e834e9bce2
tree6c04e2ddbe8a072cf9846c359f5db66bdbf8823b
parente0544513d98e8a4e6e53cd8427ee6cb22a312791
drbd: refactor drbd_reconsider_queue_parameters

Split out a drbd_max_peer_bio_size helper for the peer I/O size,
and condense the various checks to a nested min3(..., max())) instead
of using a lot of local variables.

Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/block/drbd/drbd_nl.c