diff options
author | Howard McLauchlan <hmclauchlan@fb.com> | 2018-02-07 01:05:39 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-02-07 01:09:51 +0300 |
commit | 30abb3a67f4b2aa160feeb3c0b771f730cbcca67 (patch) | |
tree | 14c7784a2e69497b38cbb35b3554a4482261fab9 /net | |
parent | 5235553d821433e1f4fa720fd025d2c4b7ee9994 (diff) | |
download | linux-30abb3a67f4b2aa160feeb3c0b771f730cbcca67.tar.xz |
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>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions