Skip to contentSkip to conversation

block: Fix the enum blk_eh_timer_return documentation

PATCH Applied Bart Van Assche 4 participants 4 messages Sep 20, 2022 – Sep 21, 2022 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 block: Fix the enum blk_eh_timer_return documentation

The documentation of the blk_eh_timer_return enumeration values does not reflect correctly how e.g. the SCSI core uses these values. Fix the documentation.

Cc Christoph Hellwig <[email protected]>
Cc Ming Lei <[email protected]>
Cc Hannes Reinecke <[email protected]>
Cc Damien Le Moal <[email protected]>
Cc Johannes Thumshirn <[email protected]>
Fixes 88b0cfad2888 ("block: document the blk_eh_timer_return values")
---
 include/linux/blk-mq.h | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
include/linux/blk-mq.h +9 -2
index 92294a5fb083..1532cd07a597 100644
@@ -268,9 +268,16 @@ static inline void rq_list_move(struct request **src, struct request **dst,
 	rq_list_add(dst, rq);
 }
 
+/**
+ * enum blk_eh_timer_return - How the timeout handler should proceed
+ * @BLK_EH_DONE: The block driver completed the command or will complete it at
+ *	a later time.
+ * @BLK_EH_RESET_TIMER: Reset the request timer and continue waiting for the
+ *	request to complete.
+ */
 enum blk_eh_timer_return {
-	BLK_EH_DONE,		/* drivers has completed the command */
-	BLK_EH_RESET_TIMER,	/* reset timer and try again */
+	BLK_EH_DONE,
+	BLK_EH_RESET_TIMER,
 };
 
 #define BLK_TAG_ALLOC_FIFO 0 /* allocate starting from 0 */
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Bart Van Assche

The documentation of the blk_eh_timer_return enumeration values does not reflect correctly how e.g. the SCSI core uses these values. Fix the documentation.

Cc Christoph Hellwig <[email protected]>
Cc Ming Lei <[email protected]>
Cc Hannes Reinecke <[email protected]>
Cc Damien Le Moal <[email protected]>
Cc Johannes Thumshirn <[email protected]>
Fixes 88b0cfad2888 ("block: document the blk_eh_timer_return values")

Looks OK to me.

Quoted 27 lines
---
  include/linux/blk-mq.h | 11 +++++++++--
  1 file changed, 9 insertions(+), 2 deletions(-)
include/linux/blk-mq.h +9 -2
index 92294a5fb083..1532cd07a597 100644
@@ -268,9 +268,16 @@ static inline void rq_list_move(struct request **src, struct request **dst,
  	rq_list_add(dst, rq);
  }
 
+/**
+ * enum blk_eh_timer_return - How the timeout handler should proceed
+ * @BLK_EH_DONE: The block driver completed the command or will complete it at
+ *	a later time.
+ * @BLK_EH_RESET_TIMER: Reset the request timer and continue waiting for the
+ *	request to complete.
+ */
  enum blk_eh_timer_return {
-	BLK_EH_DONE,		/* drivers has completed the command */
-	BLK_EH_RESET_TIMER,	/* reset timer and try again */
+	BLK_EH_DONE,
+	BLK_EH_RESET_TIMER,
  };
 
  #define BLK_TAG_ALLOC_FIFO 0 /* allocate starting from 0 */
Signature · 2 lines
Damien Le Moal
Western Digital Research
maintainer Applied
#3 lore raw
In reply to Bart Van Assche
Quoted 5 lines · Bart Van Assche

The documentation of the blk_eh_timer_return enumeration values does not reflect correctly how e.g. the SCSI core uses these values. Fix the documentation.

Applied, thanks!

[1/1] block: Fix the enum blk_eh_timer_return documentation

      commit: b2bed51a5261f4266ecb857bba680a7f668d3ddf

Best regards,

Signature · 1 line
Jens Axboe