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


Groups > linux.kernel > #1280742

[PATCH BUGFIX V2 3/3] null_blk: change type of completion_nsec to unsigned long

From Paolo Valente <paolo.valente@unimore.it>
Newsgroups linux.kernel
Subject [PATCH BUGFIX V2 3/3] null_blk: change type of completion_nsec to unsigned long
Date 2015-12-01 11:50 +0100
Message-ID <qAQFr-8sH-5@gated-at.bofh.it> (permalink)
References <qAz1U-5xV-5@gated-at.bofh.it> <qAQFr-8sH-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Arianna Avanzini <avanzini@google.com>

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 <paolo.valente@unimore.it>
Signed-off-by: Arianna Avanzini <avanzini@google.com>
---
 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

--
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/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH BUGFIX 1/3] null_blk: set a separate timer for each  command Jens Axboe <axboe@fb.com> - 2015-11-30 17:00 +0100
  [PATCH BUGFIX V2 3/3] null_blk: change type of completion_nsec to unsigned long Paolo Valente <paolo.valente@unimore.it> - 2015-12-01 11:50 +0100
  [PATCH BUGFIX V2 2/3] null_blk: guarantee device restart in all irq modes Paolo Valente <paolo.valente@unimore.it> - 2015-12-01 11:50 +0100
  [PATCH BUGFIX V2 0/3] null_blk: fix throughput losses and hangs Paolo Valente <paolo.valente@unimore.it> - 2015-12-01 11:50 +0100
    [PATCH BUGFIX V2 1/3] null_blk: set a separate timer for each command Paolo Valente <paolo.valente@unimore.it> - 2015-12-01 11:50 +0100
    Re: [PATCH BUGFIX V2 0/3] null_blk: fix throughput losses and hangs Jens Axboe <axboe@fb.com> - 2015-12-01 19:00 +0100

csiph-web