Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1185792 > unrolled thread

[PATCH] blk-mq: set default timeout as 30 seconds

Started byMing Lei <ming.lei@canonical.com>
First post2015-07-16 14:00 +0200
Last post2015-07-16 16:40 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] blk-mq: set default timeout as 30 seconds Ming Lei <ming.lei@canonical.com> - 2015-07-16 14:00 +0200
    Re: [PATCH] blk-mq: set default timeout as 30 seconds Jens Axboe <axboe@fb.com> - 2015-07-16 16:40 +0200

#1185792 — [PATCH] blk-mq: set default timeout as 30 seconds

FromMing Lei <ming.lei@canonical.com>
Date2015-07-16 14:00 +0200
Subject[PATCH] blk-mq: set default timeout as 30 seconds
Message-ID<pMPZw-5LR-3@gated-at.bofh.it>
It is reasonable to set default timeout of request as
30 seconds instead of 30000 ticks, which may be 300 seconds
if HZ is 100, for example, some arm64 based systems may choose
100 HZ.

Signed-off-by: Ming Lei <ming.lei@canonical.com>
---
 block/blk-mq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/block/blk-mq.c b/block/blk-mq.c
index f537796..7d842db 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -1998,7 +1998,7 @@ struct request_queue *blk_mq_init_allocated_queue(struct blk_mq_tag_set *set,
 		goto err_hctxs;
 
 	setup_timer(&q->timeout, blk_mq_rq_timer, (unsigned long) q);
-	blk_queue_rq_timeout(q, set->timeout ? set->timeout : 30000);
+	blk_queue_rq_timeout(q, set->timeout ? set->timeout : 30 * HZ);
 
 	q->nr_queues = nr_cpu_ids;
 	q->nr_hw_queues = set->nr_hw_queues;
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1185916

FromJens Axboe <axboe@fb.com>
Date2015-07-16 16:40 +0200
Message-ID<pMSum-13y-17@gated-at.bofh.it>
In reply to#1185792
On 07/16/2015 05:53 AM, Ming Lei wrote:
> It is reasonable to set default timeout of request as
> 30 seconds instead of 30000 ticks, which may be 300 seconds
> if HZ is 100, for example, some arm64 based systems may choose
> 100 HZ.

Heh, how did that not get caught in review. Thanks Ming! Should add a 
fixes c76cbbcf4044 to that, I'll do that.

-- 
Jens Axboe

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web