block: update documentation for blk_rq_timeout()
PATCH 1/2 block: update documentation for blk_rq_timeout()
Requests don't have their own timers anymore, they share the queue's timer instead.
Signed-off-by Julian Wiedmann <[email protected]>
--- block/blk-timeout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
block/blk-timeout.c +2 -2
@@ -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) {
Signature · 1 line
2.17.1
PATCH 2/2 block: fix kerneldoc typos
Correct a misspelled 'submitted', and add a whitespace.
Signed-off-by Julian Wiedmann <[email protected]>
--- block/blk-core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
block/blk-core.c +3 -3
@@ -1047,8 +1047,8 @@ blk_qc_t submit_bio_noacct(struct bio *bio)/* * We only want one ->submit_bio to be active at a time, else stack * usage with stacked devices could be a problem. Use current->bio_list -* to collect a list of requests submited by a ->submit_bio method while -* it is active, and then process them after it returned. +* to collect a list of requests submitted by a ->submit_bio method +* while it is active, and then process them after it returned. */ if (current->bio_list) {bio_list_add (¤t->bio_list[0 ], bio);
@@ -1071,7 +1071,7 @@ EXPORT_SYMBOL(submit_bio_noacct);* * The success/failure status of the request, along with notification of * completion, is delivered asynchronously through the ->bi_end_io() callback -* in @bio. The bio must NOT be touched by thecaller until ->bi_end_io() has +* in @bio. The bio must NOT be touched by the caller until ->bi_end_io() has * been called. */ blk_qc_t submit_bio (struct bio *bio)
Signature · 1 line
2.17.1