diff options
author | Mike Christie <mchristi@redhat.com> | 2016-06-05 15:32:23 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-06-07 15:41:38 -0400 |
commit | 3a5e02ced11e22ecd9da3d6710afe15bcfee1d10 (patch) | |
tree | 78f6d1a737b01b559b61310b9355f1f7ecfdd54c /drivers/block/skd_main.c | |
parent | 4e1b2d52a80d79296a5d899d73249748dea71a53 (diff) |
block, drivers: add REQ_OP_FLUSH operation
This adds a REQ_OP_FLUSH operation that is sent to request_fn
based drivers by the block layer's flush code, instead of
sending requests with the request->cmd_flags REQ_FLUSH bit set.
Signed-off-by: Mike Christie <mchristi@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/block/skd_main.c')
-rw-r--r-- | drivers/block/skd_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/skd_main.c b/drivers/block/skd_main.c index 910e065918af..5c07a23e2ada 100644 --- a/drivers/block/skd_main.c +++ b/drivers/block/skd_main.c | |||
@@ -597,7 +597,7 @@ static void skd_request_fn(struct request_queue *q) | |||
597 | data_dir = rq_data_dir(req); | 597 | data_dir = rq_data_dir(req); |
598 | io_flags = req->cmd_flags; | 598 | io_flags = req->cmd_flags; |
599 | 599 | ||
600 | if (io_flags & REQ_FLUSH) | 600 | if (req_op(req) == REQ_OP_FLUSH) |
601 | flush++; | 601 | flush++; |
602 | 602 | ||
603 | if (io_flags & REQ_FUA) | 603 | if (io_flags & REQ_FUA) |