* [PATCH 4/3] block: document debugfs_mutex
@ 2022-05-31 15:06 Christoph Hellwig
0 siblings, 0 replies; only message in thread
From: Christoph Hellwig @ 2022-05-31 15:06 UTC (permalink / raw)
To: axboe; +Cc: shinichiro.kawasaki, dan.j.williams, yukuai3, ming.lei,
linux-block
Move debugfs_mutex next to the dentries that it protects and document
what it is used for.
Suggested-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
---
drivers/scsi/sd.c | 1 -
include/linux/blkdev.h | 5 ++++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 095a0d68c9b41..5ddcc7b77de0f 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -481,7 +481,6 @@ struct request_queue {
#endif /* CONFIG_BLK_DEV_ZONED */
int node;
- struct mutex debugfs_mutex;
#ifdef CONFIG_BLK_DEV_IO_TRACE
struct blk_trace __rcu *blk_trace;
#endif
@@ -527,6 +526,10 @@ struct request_queue {
struct dentry *debugfs_dir;
struct dentry *sched_debugfs_dir;
struct dentry *rqos_debugfs_dir;
+ /*
+ * Serializes all debugfs metadata operations using the above dentries.
+ */
+ struct mutex debugfs_mutex;
bool mq_sysfs_init_done;
--
2.30.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-05-31 15:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-31 15:06 [PATCH 4/3] block: document debugfs_mutex Christoph Hellwig
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.