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


Groups > linux.kernel > #1717581 > unrolled thread

[PATCH 0/2] Make I/O timeout failure injection again task-independent

Started byBart Van Assche <bart.vanassche@wdc.com>
First post2017-08-22 19:00 +0200
Last post2017-08-22 19:00 +0200
Articles 2 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH 0/2] Make I/O timeout failure injection again task-independent Bart Van Assche <bart.vanassche@wdc.com> - 2017-08-22 19:00 +0200
    [PATCH 2/2] block: Make I/O timeout failure injection support again task-independent Bart Van Assche <bart.vanassche@wdc.com> - 2017-08-22 19:00 +0200

#1717581 — [PATCH 0/2] Make I/O timeout failure injection again task-independent

FromBart Van Assche <bart.vanassche@wdc.com>
Date2017-08-22 19:00 +0200
Subject[PATCH 0/2] Make I/O timeout failure injection again task-independent
Message-ID<uhkGZ-53a-5@gated-at.bofh.it>
Hello Andrew,

A recent change in the fault injection code introduced an undesired change
in the behavior of the I/O timeout failure injection code. This series
restores the original behavior. Please consider these patches for kernel
v4.14.

Thanks,

Bart.

Bart Van Assche (2):
  fault-inject: Restore support for task-independent fault injection
  block: Make I/O timeout failure injection support again
    task-independent

 block/blk-timeout.c          | 2 +-
 include/linux/fault-inject.h | 9 +++++++--
 lib/fault-inject.c           | 4 +++-
 3 files changed, 11 insertions(+), 4 deletions(-)

-- 
2.14.0

[toc] | [next] | [standalone]


#1717588 — [PATCH 2/2] block: Make I/O timeout failure injection support again task-independent

FromBart Van Assche <bart.vanassche@wdc.com>
Date2017-08-22 19:00 +0200
Subject[PATCH 2/2] block: Make I/O timeout failure injection support again task-independent
Message-ID<uhkH1-53a-31@gated-at.bofh.it>
In reply to#1717581
Commit e41d58185f14 made all faults that are triggered from task
context, including I/O timeouts, dependent on the failure
injection settings for that task. Make it again possible to inject
I/O timeout failures independent of task context. An example for a
fault injection for which this patch makes a difference (from a VM
booted with the 'threadirqs' command line parameter):

FAULT_INJECTION: forcing a failure. name fail_io_timeout, interval 1, probability 100, space 0, times 1
CPU: 6 PID: 1253 Comm: irq/36-skd0-msi Not tainted 4.13.0-rc2-dbg+ #5
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1.fc26 04/01/2014
Call Trace:
 dump_stack+0x8e/0xcd
 should_fail+0x154/0x160
 blk_should_fake_timeout+0x27/0x30
 blk_mq_complete_request+0x11/0x30
 skd_end_request+0x32/0xc0 [skd]
 skd_isr_completion_posted.isra.30+0x14a/0x400 [skd]
 skd_comp_q+0x40/0xb0 [skd]
 irq_forced_thread_fn+0x2a/0x70
 irq_thread+0x144/0x1a0
 kthread+0x125/0x140
 ret_from_fork+0x2a/0x40

Fixes: commit e41d58185f14 ("fault-inject: support systematic fault injection")
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
---
 block/blk-timeout.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/block/blk-timeout.c b/block/blk-timeout.c
index 17ec83bb0900..2e92b20b125f 100644
--- a/block/blk-timeout.c
+++ b/block/blk-timeout.c
@@ -11,7 +11,7 @@
 
 #ifdef CONFIG_FAIL_IO_TIMEOUT
 
-static DECLARE_FAULT_ATTR(fail_io_timeout);
+static DECLARE_GLOBAL_FAULT_ATTR(fail_io_timeout);
 
 static int __init setup_fail_io_timeout(char *str)
 {
-- 
2.14.0

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web