[PATCH] block: Add should_fail_bio() for bpf error injection

2018-01-24 Thread Howard McLauchlan
place for kprobes to hook into if they require the entire struct bio. This patch also replaces some existing calls to should_fail_request() with should_fail_bio() with no degradation in performance. Signed-off-by: Howard McLauchlan --- block/blk-core.c | 9 - 1 file changed, 8 insertions

[PATCH v2] block: Add should_fail_bio() for bpf error injection

2018-02-06 Thread Howard McLauchlan
place for kprobes to hook into if they require the entire struct bio. This patch also replaces some existing calls to should_fail_request() with should_fail_bio() with no degradation in performance. Reviewed-by: Omar Sandoval Signed-off-by: Howard McLauchlan --- V2: rebased on master for 4.15

[PATCH v3] block: Add should_fail_bio() for bpf error injection

2018-02-06 Thread Howard McLauchlan
place for kprobes to hook into if they require the entire struct bio. This patch also replaces some existing calls to should_fail_request() with should_fail_bio() with no degradation in performance. Signed-off-by: Howard McLauchlan --- block/blk-core.c | 11 ++- 1 file changed, 10