]> www.infradead.org Git - users/hch/block.git/commit
block: freeze the queue in queue_attr_store
authorChristoph Hellwig <hch@lst.de>
Sat, 1 Jun 2024 13:26:44 +0000 (15:26 +0200)
committerChristoph Hellwig <hch@lst.de>
Sun, 16 Jun 2024 09:47:56 +0000 (11:47 +0200)
commit23daa2eb46a617bc03b00c7c4a681e288c7fff94
tree919ad5db5c48453f9811a6df2fdc36db0f7c7493
parent04c4b0c432c35ef1f437b29778e7137a56546b74
block: freeze the queue in queue_attr_store

queue_attr_store updates attributes used to control generating I/O, and
can cause malformed bios if changed with I/O in flight.  Freeze the queue
in common code instead of adding it to almost every attribute.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
block/blk-mq.c
block/blk-sysfs.c