Commit 08823e8
block: Remove elevator_lock usage from blkg_conf frozen operations
Remove the acquisition and release of q->elevator_lock in the
blkg_conf_open_bdev_frozen() and blkg_conf_exit_frozen() functions. The
elevator lock is no longer needed in these code paths since commit
78c2713 ("block: move wbt_enable_default() out of queue freezing
from sched ->exit()") which introduces `disk->rqos_state_mutex` for
protecting wbt state change, and not necessary to abuse elevator_lock
for this purpose.
This change helps to solve the lockdep warning reported from Yu Kuai[1].
Pass blktests/throtl with lockdep enabled.
Links: https://lore.kernel.org/linux-block/[email protected]/ [1]
Fixes: commit 78c2713 ("block: move wbt_enable_default() out of queue freezing from sched ->exit()")
Signed-off-by: Ming Lei <[email protected]>
Reviewed-by: Nilay Shroff <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>1 parent dc96cef commit 08823e8
1 file changed
+4
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
812 | 812 | | |
813 | 813 | | |
814 | 814 | | |
815 | | - | |
816 | | - | |
| 815 | + | |
817 | 816 | | |
818 | 817 | | |
819 | 818 | | |
| |||
834 | 833 | | |
835 | 834 | | |
836 | 835 | | |
837 | | - | |
838 | | - | |
| 836 | + | |
839 | 837 | | |
840 | 838 | | |
841 | 839 | | |
842 | 840 | | |
843 | | - | |
844 | 841 | | |
845 | 842 | | |
846 | 843 | | |
| |||
995 | 992 | | |
996 | 993 | | |
997 | 994 | | |
998 | | - | |
999 | | - | |
1000 | | - | |
| 995 | + | |
| 996 | + | |
1001 | 997 | | |
1002 | 998 | | |
1003 | 999 | | |
1004 | 1000 | | |
1005 | 1001 | | |
1006 | 1002 | | |
1007 | 1003 | | |
1008 | | - | |
1009 | 1004 | | |
1010 | 1005 | | |
1011 | 1006 | | |
| |||
0 commit comments