projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
block, drivers: add REQ_OP_FLUSH operation
[linux-2.6-block.git]
/
drivers
/
block
/
osdblk.c
diff --git
a/drivers/block/osdblk.c
b/drivers/block/osdblk.c
index c2854a2bfdb0bd1027fb4f10f2c39c8761d7d709..92900f5f0b4725ebc1d1edbf3da30138a3e2979b 100644
(file)
--- a/
drivers/block/osdblk.c
+++ b/
drivers/block/osdblk.c
@@
-321,7
+321,7
@@
static void osdblk_rq_fn(struct request_queue *q)
* driver-specific, etc.
*/
- do_flush =
rq->cmd_flags & REQ_FLUSH
;
+ do_flush =
(req_op(rq) == REQ_OP_FLUSH)
;
do_write = (rq_data_dir(rq) == WRITE);
if (!do_flush) { /* osd_flush does not use a bio */