All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] block: update documentation for blk_rq_timeout()
@ 2020-11-23  8:12 Julian Wiedmann
  2020-11-23  8:12 ` [PATCH 2/2] block: fix kerneldoc typos Julian Wiedmann
  0 siblings, 1 reply; 2+ messages in thread
From: Julian Wiedmann @ 2020-11-23  8:12 UTC (permalink / raw)
  To: Jens Axboe; +Cc: linux-block, Julian Wiedmann

Requests don't have their own timers anymore, they share the queue's
timer instead.

Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
---
 block/blk-timeout.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/block/blk-timeout.c b/block/blk-timeout.c
index 1b8de0417fc1..61430575cb58 100644
--- a/block/blk-timeout.c
+++ b/block/blk-timeout.c
@@ -122,8 +122,8 @@ unsigned long blk_rq_timeout(unsigned long timeout)
  * @req:	request that is about to start running.
  *
  * Notes:
- *    Each request has its own timer, and as it is added to the queue, we
- *    set up the timer. When the request completes, we cancel the timer.
+ *    Each request has its own timeout. As a request is added to the queue,
+ *    we start/adjust the queue's timer to keep track of the earliest timeout.
  */
 void blk_add_timer(struct request *req)
 {
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-11-23  8:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-23  8:12 [PATCH 1/2] block: update documentation for blk_rq_timeout() Julian Wiedmann
2020-11-23  8:12 ` [PATCH 2/2] block: fix kerneldoc typos Julian Wiedmann

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.