mirror of
https://github.com/schoebel/mars
synced 2025-01-27 01:34:28 +00:00
bio: adapt to missing BIO_EOPNOTSUPP (kernel 4.2)
This commit is contained in:
parent
d2abf4d64f
commit
cf8ee66490
@ -448,8 +448,10 @@ void _bio_ref_io(struct bio_output *output, struct mref_object *mref, bool cork)
|
||||
threshold_check(&bio_submit_threshold, latency);
|
||||
|
||||
status = 0;
|
||||
#ifdef BIO_EOPNOTSUPP /* missing since b25de9d6da49b1a8760a89672283128aa8c78345 */
|
||||
if (unlikely(bio_flagged(bio, BIO_EOPNOTSUPP)))
|
||||
status = -EOPNOTSUPP;
|
||||
#endif
|
||||
|
||||
MARS_IO("submitted\n");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user