Howard McLauchlan
30abb3a67f
block: Add should_fail_bio() for bpf error injection
...
The classic error injection mechanism, should_fail_request() does not
support use cases where more information is required (from the entire
struct bio, for example).
To that end, this patch introduces should_fail_bio(), which calls
should_fail_request() under the hood but provides a convenient
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 <hmclauchlan@fb.com >
Signed-off-by: Jens Axboe <axboe@kernel.dk >
2018-02-06 15:09:51 -07:00
..
2018-01-10 09:12:16 -07:00
2017-11-03 11:29:50 -07:00
2018-01-09 08:45:25 -07:00
2018-01-18 08:21:37 -07:00
2018-01-18 08:21:37 -07:00
2018-01-18 08:21:37 -07:00
2018-01-17 09:59:33 -07:00
2018-01-29 11:51:49 -08:00
2017-11-04 12:31:15 -06:00
2018-02-06 15:09:51 -07:00
2018-01-17 09:49:21 -07:00
2017-11-04 12:40:13 -06:00
2017-06-09 09:27:32 -06:00
2017-11-02 11:10:55 +01:00
2018-01-18 12:57:19 -07:00
2018-01-29 11:51:49 -08:00
2018-02-01 14:01:02 -07:00
2017-07-24 10:01:31 -06:00
2018-01-24 09:46:09 -07:00
2017-11-02 11:10:55 +01:00
2017-08-18 08:08:14 -06:00
2017-08-08 14:58:03 -04:00
2018-02-01 14:45:11 -07:00
2018-01-17 09:49:21 -07:00
2018-01-15 08:41:38 -07:00
2017-12-22 11:09:37 -07:00
2017-11-14 15:32:19 -08:00
2017-02-27 20:54:05 +02:00
2018-01-30 20:18:28 -07:00
2018-01-19 12:51:59 -07:00
2017-11-10 19:53:25 -07:00
2017-11-02 11:10:55 +01:00
2017-11-21 15:57:07 -08:00
2017-11-02 11:10:55 +01:00
2018-01-18 12:54:44 -07:00
2017-11-02 11:10:55 +01:00
2018-01-29 11:51:49 -08:00
2018-01-10 11:47:47 -07:00
2018-02-06 14:14:03 -07:00
2017-11-02 11:10:55 +01:00
2018-01-05 09:22:17 -07:00
2018-01-29 11:51:49 -08:00
2018-01-29 11:51:49 -08:00
2018-01-09 11:15:17 -07:00
2018-01-30 17:58:07 -08:00
2017-09-08 18:26:49 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-01-05 09:22:17 -07:00
2018-01-18 12:54:42 -07:00
2018-01-15 08:41:38 -07:00
2017-10-25 12:25:00 -06:00
2017-06-21 11:46:07 -06:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-12-06 12:33:07 -07:00
2017-11-02 11:10:55 +01:00
2018-01-06 09:23:11 -07:00
2017-01-17 10:03:33 -07:00
2017-09-11 09:45:52 -06:00
2017-11-02 11:10:55 +01:00
2018-01-10 12:30:37 -07:00
2017-09-11 09:45:52 -06:00
2017-07-03 16:56:25 -06:00