]> www.infradead.org Git - users/hch/block.git/commit
block: move the add_random flag to queue_limits
authorChristoph Hellwig <hch@lst.de>
Sun, 9 Jun 2024 06:15:18 +0000 (08:15 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 17 Jun 2024 06:03:17 +0000 (08:03 +0200)
commitf4e2ba7ed15496eee6f5b6b56af958fea7995ff9
tree5b179eba79bb47b2925b9484a07d03d9f82ca595
parent38808c288c52567ee14c62b2cf264af310f5b128
block: move the add_random flag to queue_limits

Move the add_random flag into the queue_limits feature field so that it
can be set atomically with the queue frozen.

Note that this also removes code from dm to clear the flag based on
the underlying devices, which can't be reached as dm devices will
always start out without the flag set.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
block/blk-mq-debugfs.c
block/blk-sysfs.c
drivers/block/mtip32xx/mtip32xx.c
drivers/md/dm-table.c
drivers/mmc/core/queue.c
drivers/mtd/mtd_blkdevs.c
drivers/s390/block/scm_blk.c
drivers/scsi/scsi_lib.c
drivers/scsi/sd.c
include/linux/blkdev.h