]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dasd: use the atomic queue limits API
authorChristoph Hellwig <hch@lst.de>
Wed, 28 Feb 2024 13:37:42 +0000 (05:37 -0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 6 Mar 2024 15:27:01 +0000 (08:27 -0700)
commitfde07a4d74e3b511105e0b6c9372d42376fbbecb
treebfa14dbd850f66b2b82a19f6935b28860012b703
parent0127a47f58c6bb7b54386960ee66864b937269eb
dasd: use the atomic queue limits API

Pass the constant limits directly to blk_mq_alloc_disk, set the nonrot
flag there as well, and then use the commit API to change the transfer
size and logical block size dependent values.

This relies on the assumption that no I/O can be pending before the
devices moves into the ready state and doesn't need extra freezing
for changes to the queue limits.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Stefan Haberland <sth@linux.ibm.com>
Link: https://lore.kernel.org/r/20240228133742.806274-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/s390/block/dasd.c
drivers/s390/block/dasd_genhd.c