]> 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, 26 Feb 2024 16:26:09 +0000 (11:26 -0500)
commit35cc7c04e43633578086818a7d81d3ba4d09ac49
treeb0cb547bec782451241ae605febd30d51686c8e6
parenta7ca76d477e587a53a447530c24e39472d9a5915
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