mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
block: silently error an unsupported barrier bio
This fixes a "regression" from 2.6.28, where the barrier probes that file systems may do would trigger additional end request warnings in dmesg. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
This commit is contained in:
parent
dbdac9b71d
commit
cec0707e40
1 changed files with 5 additions and 0 deletions
|
@ -1451,6 +1451,11 @@ static inline void __generic_make_request(struct bio *bio)
|
|||
err = -EOPNOTSUPP;
|
||||
goto end_io;
|
||||
}
|
||||
if (bio_barrier(bio) && bio_has_data(bio) &&
|
||||
(q->next_ordered == QUEUE_ORDERED_NONE)) {
|
||||
err = -EOPNOTSUPP;
|
||||
goto end_io;
|
||||
}
|
||||
|
||||
ret = q->make_request_fn(q, bio);
|
||||
} while (ret);
|
||||
|
|
Loading…
Reference in a new issue