drbd: pass the max_hw_sectors limit to blk_alloc_disk
authorChristoph Hellwig <hch@lst.de>
Tue, 5 Mar 2024 13:40:35 +0000 (06:40 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 6 Mar 2024 15:30:34 +0000 (08:30 -0700)
commitaa067325c05dc3a3aac588f40cacf8418f916cee
tree31d313b7b6e6bc4fe96be6e96ccf64f26ff872e6
parent5f2ad31fbb18565645f121b413837f260748e963
drbd: pass the max_hw_sectors limit to blk_alloc_disk

Pass a queue_limits structure with the max_hw_sectors limit to
blk_alloc_disk instead of updating the limit on the allocated gendisk.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20240305134041.137006-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/drbd/drbd_main.c