Skip to content

Commit 3888b2e

Browse files
Christoph Hellwigaxboe
authored andcommitted
aoe: 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-3-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 9a9525d commit 3888b2e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/block/aoe/aoeblk.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,8 @@ aoeblk_gdalloc(void *vp)
383383
WARN_ON(d->flags & DEVFL_TKILL);
384384
WARN_ON(d->gd);
385385
WARN_ON(d->flags & DEVFL_UP);
386-
blk_queue_max_hw_sectors(gd->queue, BLK_DEF_MAX_SECTORS);
386+
/* random number picked from the history block max_sectors cap */
387+
blk_queue_max_hw_sectors(gd->queue, 2560u);
387388
blk_queue_io_opt(gd->queue, SZ_2M);
388389
d->bufpool = mp;
389390
d->blkq = gd->queue;

0 commit comments

Comments
 (0)