Commit f11a554
Ming Lei
block: move hctx debugfs/sysfs registering out of freezing queue
JIRA: https://issues.redhat.com/browse/RHEL-106845
commit 9dc7a88
Author: Ming Lei <[email protected]>
Date: Mon May 5 22:18:00 2025 +0800
block: move hctx debugfs/sysfs registering out of freezing queue
Move hctx debugfs/sysfs register out of freezing queue in
__blk_mq_update_nr_hw_queues(), so that the following lockdep dependency
can be killed:
#2 (&q->q_usage_counter(io)#16){++++}-{0:0}:
#1 (fs_reclaim){+.+.}-{0:0}:
#0 (&sb->s_type->i_mutex_key#3){+.+.}-{4:4}: //debugfs
And registering/un-registering hctx debugfs/sysfs does not require queue to
be frozen:
- hctx sysfs attributes show() are drained when removing kobject, and
there isn't store() implementation for hctx sysfs attributes
- debugfs entry read() is drained too when removing debugfs directory,
and there isn't write() implementation for hctx debugfs too
- so it is safe to register/unregister hctx sysfs/debugfs without
freezing queue because the cod paths changes nothing, and we just
need to keep hctx live
Reviewed-by: Hannes Reinecke <[email protected]>
Reviewed-by: Nilay Shroff <[email protected]>
Signed-off-by: Ming Lei <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Signed-off-by: Ming Lei <[email protected]>1 parent 3d924fc commit f11a554
1 file changed
+7
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5005 | 5005 | | |
5006 | 5006 | | |
5007 | 5007 | | |
5008 | | - | |
5009 | | - | |
5010 | | - | |
5011 | 5008 | | |
5012 | 5009 | | |
5013 | 5010 | | |
5014 | 5011 | | |
5015 | 5012 | | |
| 5013 | + | |
| 5014 | + | |
| 5015 | + | |
5016 | 5016 | | |
5017 | 5017 | | |
5018 | 5018 | | |
| |||
5035 | 5035 | | |
5036 | 5036 | | |
5037 | 5037 | | |
| 5038 | + | |
| 5039 | + | |
| 5040 | + | |
| 5041 | + | |
5038 | 5042 | | |
5039 | 5043 | | |
5040 | 5044 | | |
5041 | 5045 | | |
5042 | 5046 | | |
5043 | | - | |
5044 | | - | |
5045 | | - | |
5046 | | - | |
5047 | | - | |
5048 | 5047 | | |
5049 | 5048 | | |
5050 | 5049 | | |
| |||
0 commit comments