diff options
author | NeilBrown <neilb@cse.unsw.edu.au> | 2005-09-09 23:23:41 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-09 23:39:09 (GMT) |
commit | e5dcdd80a60627371f40797426273048630dc8ca (patch) | |
tree | 1621f68394ceaa4da86d89c6da3b93fd306415fc /drivers/md/raid1.c | |
parent | 3ec67ac1a399d576d48b0736096bcce7721fe3cf (diff) | |
download | linux-e5dcdd80a60627371f40797426273048630dc8ca.tar.xz |
[PATCH] md: fail IO request to md that require a barrier.
md does not yet support BIO_RW_BARRIER, so be honest about it and fail
(-EOPNOTSUPP) any such requests.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/md/raid1.c')
-rw-r--r-- | drivers/md/raid1.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index 51d9645..ace41c5 100644 --- a/drivers/md/raid1.c +++ b/drivers/md/raid1.c @@ -555,6 +555,10 @@ static int make_request(request_queue_t *q, struct bio * bio) unsigned long flags; struct bio_list bl; + if (unlikely(bio_barrier(bio))) { + bio_endio(bio, bio->bi_size, -EOPNOTSUPP); + return 0; + } /* * Register the new request and wait if the reconstruction |