Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130515
b: refs/heads/master
c: cec0707
h: refs/heads/master
i:
  130513: 0d34b1c
  130511: 725bfab
v: v3
  • Loading branch information
Jens Axboe committed Jan 30, 2009
1 parent aa4e5af commit 30a4228
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dbdac9b71dff5d27885f82eb2cfca310861fdf9e
refs/heads/master: cec0707e40ae25794b5a2de7b7f03c51961f80d9
5 changes: 5 additions & 0 deletions trunk/block/blk-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 30a4228

Please sign in to comment.