more BLK_MQ_F_* simplification v2

Christoph Hellwig
2025-01-06T08:35:35Z

Hi Jens,

this series removes another BLK_MQ_F_ that just duplicates an implicit
condition and cleans up the tag allocation policy selection by using
an actual BLK_MQ_F_ flag instead of a two-value enum awkwardly encoded
into it. If we'd ever grow another policy we'd be much better off just
adding a separate field to the tagset for it.

Changes since v1:
- use a boolean bitfield for the SCSI RR tag allocation policy selection

Diffstat:
block/blk-mq-debugfs.c | 26 +++-----------------
block/blk-mq-tag.c | 41 ++++++++++-----------------------
block/blk-mq.c | 3 --
block/blk-mq.h | 5 ----
block/bsg-lib.c | 2 -
block/elevator.c | 20 ----------------
block/genhd.c | 28 ++++++++++++----------
drivers/ata/ahci.h | 2 -
drivers/ata/pata_macio.c | 2 -
drivers/ata/sata_mv.c | 2 -
drivers/ata/sata_nv.c | 4 +--
drivers/ata/sata_sil24.c | 1
drivers/block/null_blk/main.c | 4 +--
drivers/nvme/host/apple.c | 1
drivers/nvme/host/core.c | 1
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 2 -
drivers/scsi/scsi_lib.c | 4 +--
drivers/ufs/core/ufshcd.c | 1
include/linux/blk-mq.h | 24 +++++--------------
include/linux/libata.h | 4 +--
include/scsi/scsi_host.h | 6 +++-
21 files changed, 58 insertions(+), 125 deletions(-)