]> git.itanic.dy.fi Git - linux-stable/commit
loop: don't abuse BLK_DEF_MAX_SECTORS
authorChristoph Hellwig <hch@lst.de>
Wed, 27 Dec 2023 09:23:04 +0000 (09:23 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 27 Dec 2023 17:46:01 +0000 (10:46 -0700)
commit3d77976c3a8586ab1fb6845e2061588b7d04934f
tree597c695905e147cbe9b813e683c344a96514ffc2
parent3888b2ee6262616dbcbf902bc171963fe345da87
loop: don't abuse BLK_DEF_MAX_SECTORS

BLK_DEF_MAX_SECTORS despite the confusing name is the default cap for
the max_sectors limits.  Don't use it to initialize max_hw_setors, which
is a hardware / driver capacility.

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