Commit 73450d4
Ming Lei
block: don't call freeze queue in elevator_switch() and elevator_disable()
JIRA: https://issues.redhat.com/browse/RHEL-106845
commit f8e111c
Author: Ming Lei <ming.lei@redhat.com>
Date: Mon May 5 22:17:41 2025 +0800
block: don't call freeze queue in elevator_switch() and elevator_disable()
Both elevator_switch() and elevator_disable() are only called from the
two code paths, in which queue is guaranteed to be frozen.
So don't call freeze queue in the two functions, also add asserts for
queue freeze.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Nilay Shroff <nilay@linux.ibm.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Yu Kuai <yukuai3@huawei.com>
Link: https://lore.kernel.org/r/20250505141805.2751237-4-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Ming Lei <ming.lei@redhat.com>1 parent e0dff41 commit 73450d4
1 file changed
+2
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
615 | 615 | | |
616 | 616 | | |
617 | 617 | | |
618 | | - | |
619 | 618 | | |
620 | 619 | | |
| 620 | + | |
621 | 621 | | |
622 | 622 | | |
623 | | - | |
624 | 623 | | |
625 | 624 | | |
626 | 625 | | |
| |||
641 | 640 | | |
642 | 641 | | |
643 | 642 | | |
644 | | - | |
645 | 643 | | |
646 | 644 | | |
647 | 645 | | |
| |||
653 | 651 | | |
654 | 652 | | |
655 | 653 | | |
656 | | - | |
657 | | - | |
| 654 | + | |
658 | 655 | | |
659 | 656 | | |
660 | | - | |
661 | 657 | | |
662 | 658 | | |
663 | 659 | | |
| |||
668 | 664 | | |
669 | 665 | | |
670 | 666 | | |
671 | | - | |
672 | 667 | | |
673 | 668 | | |
674 | 669 | | |
| |||
0 commit comments