Commit af28141
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>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20240617060532.127975-12-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 6b37778 commit af28141
2 files changed
+5
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4631 | 4631 | | |
4632 | 4632 | | |
4633 | 4633 | | |
| 4634 | + | |
| 4635 | + | |
| 4636 | + | |
4634 | 4637 | | |
4635 | 4638 | | |
4636 | 4639 | | |
4637 | 4640 | | |
4638 | 4641 | | |
4639 | 4642 | | |
4640 | | - | |
4641 | 4643 | | |
4642 | 4644 | | |
4643 | 4645 | | |
| |||
4671 | 4673 | | |
4672 | 4674 | | |
4673 | 4675 | | |
4674 | | - | |
4675 | 4676 | | |
4676 | 4677 | | |
4677 | 4678 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
193 | 192 | | |
194 | 193 | | |
195 | 194 | | |
196 | | - | |
197 | | - | |
198 | 195 | | |
199 | 196 | | |
200 | 197 | | |
| |||
241 | 238 | | |
242 | 239 | | |
243 | 240 | | |
244 | | - | |
245 | 241 | | |
246 | 242 | | |
247 | 243 | | |
248 | | - | |
249 | 244 | | |
250 | 245 | | |
251 | 246 | | |
| |||
585 | 580 | | |
586 | 581 | | |
587 | 582 | | |
588 | | - | |
589 | 583 | | |
590 | 584 | | |
591 | 585 | | |
592 | 586 | | |
593 | 587 | | |
594 | | - | |
595 | 588 | | |
596 | 589 | | |
597 | 590 | | |
| |||
722 | 715 | | |
723 | 716 | | |
724 | 717 | | |
| 718 | + | |
725 | 719 | | |
726 | 720 | | |
727 | 721 | | |
| 722 | + | |
728 | 723 | | |
729 | 724 | | |
730 | 725 | | |
| |||
0 commit comments