Skip to content

Commit

Permalink
block: mq: Add some minor doc for core structs
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
linusw authored and axboe committed Apr 25, 2018
1 parent e9938f5 commit fe64407
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions block/blk-mq.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 3 additions & 0 deletions include/linux/blk-mq.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fe64407

Please sign in to comment.