block: mq: Add some minor doc for core structs
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 20 Apr 2018 08:29:51 +0000 (10:29 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 25 Apr 2018 13:58:18 +0000 (07:58 -0600)
As it came up in discussion on the mailing list that the semantic
meaning of 'blk_mq_ctx' and 'blk_mq_hw_ctx' isn't completely
obvious to everyone, let's add some minimal kerneldoc for a
starter.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.h
include/linux/blk-mq.h

index 88c558f718190f88e123bba0444b0c50b296e572..89b5cd3a6c7088f3fac5d0dd14ef1fee76a49fc8 100644 (file)
@@ -7,6 +7,9 @@
 
 struct blk_mq_tag_set;
 
+/**
+ * struct blk_mq_ctx - State for a software queue facing the submitting CPUs
+ */
 struct blk_mq_ctx {
        struct {
                spinlock_t              lock;
index e3986f4b34615fa7c50c6d412976594ebc3a7fdf..ebc34a5686dc7cd0bfc31b7d1220724282f51b0f 100644 (file)
@@ -9,6 +9,9 @@
 struct blk_mq_tags;
 struct blk_flush_queue;
 
+/**
+ * struct blk_mq_hw_ctx - State for a hardware queue facing the hardware block device
+ */
 struct blk_mq_hw_ctx {
        struct {
                spinlock_t              lock;