]> www.infradead.org Git - nvme.git/commit
block: simplify tag allocation policy selection
authorChristoph Hellwig <hch@lst.de>
Mon, 6 Jan 2025 08:35:11 +0000 (09:35 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 6 Jan 2025 14:37:41 +0000 (07:37 -0700)
commitce32496ec1abe866225f2e2005ceda68cf4c7bf4
tree2415de287b8b651f1d4cdcc91b5c8e27c2c07131
parente7602bb4f3a1234df8b75728ac3260bcb8242612
block: simplify tag allocation policy selection

Use a plain BLK_MQ_F_* flag to select the round robin tag selection
instead of overlaying an enum with just two possible values into the
flags space.

Doing so allows adding a BLK_MQ_F_MAX sentinel for simplified overflow
checking in the messy debugfs helpers.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Link: https://lore.kernel.org/r/20250106083531.799976-5-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
14 files changed:
block/blk-mq-debugfs.c
block/blk-mq-tag.c
block/blk-mq.c
block/blk-mq.h
drivers/ata/ahci.h
drivers/ata/pata_macio.c
drivers/ata/sata_mv.c
drivers/ata/sata_nv.c
drivers/ata/sata_sil24.c
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
drivers/scsi/scsi_lib.c
include/linux/blk-mq.h
include/linux/libata.h
include/scsi/scsi_host.h