From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756104AbbLAKtS (ORCPT ); Tue, 1 Dec 2015 05:49:18 -0500 Received: from smtp7.sms.unimo.it ([155.185.44.150]:54898 "EHLO smtp7.sms.unimo.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754147AbbLAKs6 (ORCPT ); Tue, 1 Dec 2015 05:48:58 -0500 From: Paolo Valente To: Jens Axboe , =?UTF-8?q?Matias=20Bj=C3=B8rling?= , Arianna Avanzini Cc: Paolo Valente , Akinobu Mita , "Luis R. Rodriguez" , Ming Lei , Mike Krinkin , linux-kernel@vger.kernel.org Subject: [PATCH BUGFIX V2 3/3] null_blk: change type of completion_nsec to unsigned long Date: Tue, 1 Dec 2015 11:48:19 +0100 Message-Id: <1448966899-3399-4-git-send-email-paolo.valente@unimore.it> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1448966899-3399-1-git-send-email-paolo.valente@unimore.it> References: <565C7187.7050507@fb.com> <1448966899-3399-1-git-send-email-paolo.valente@unimore.it> UNIMORE-X-SA-Score: -2.9 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arianna Avanzini This commit at least doubles the maximum value for completion_nsec. This helps in special cases where one wants/needs to emulate an extremely slow I/O (for example to spot bugs). Signed-off-by: Paolo Valente Signed-off-by: Arianna Avanzini --- drivers/block/null_blk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/block/null_blk.c b/drivers/block/null_blk.c index cf65619..0c3940e 100644 --- a/drivers/block/null_blk.c +++ b/drivers/block/null_blk.c @@ -132,8 +132,8 @@ static const struct kernel_param_ops null_irqmode_param_ops = { device_param_cb(irqmode, &null_irqmode_param_ops, &irqmode, S_IRUGO); MODULE_PARM_DESC(irqmode, "IRQ completion handler. 0-none, 1-softirq, 2-timer"); -static int completion_nsec = 10000; -module_param(completion_nsec, int, S_IRUGO); +static unsigned long completion_nsec = 10000; +module_param(completion_nsec, ulong, S_IRUGO); MODULE_PARM_DESC(completion_nsec, "Time in ns to complete a request in hardware. Default: 10,000ns"); static int hw_queue_depth = 64; -- 1.9.1