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

2018-02-06 Thread Jens Axboe
On 2/6/18 3:05 PM, Howard McLauchlan wrote: > 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 >

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

2018-02-06 Thread Howard McLauchlan
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