diff options
| author | 2016-06-05 14:32:23 -0500 | |
|---|---|---|
| committer | 2016-06-07 13:41:38 -0600 | |
| commit | 3a5e02ced11e22ecd9da3d6710afe15bcfee1d10 (patch) | |
| tree | 78f6d1a737b01b559b61310b9355f1f7ecfdd54c /include/linux/blkdev.h | |
| parent | block, fs, drivers: remove REQ_OP compat defs and related code (diff) | |
| download | linux-dev-3a5e02ced11e22ecd9da3d6710afe15bcfee1d10.tar.xz linux-dev-3a5e02ced11e22ecd9da3d6710afe15bcfee1d10.zip | |
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 'include/linux/blkdev.h')
| -rw-r--r-- | include/linux/blkdev.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 78ae3dbf2de1..0c9f8793c87e 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -666,6 +666,9 @@ static inline bool rq_mergeable(struct request *rq) if (rq->cmd_type != REQ_TYPE_FS) return false; + if (req_op(rq) == REQ_OP_FLUSH) + return false; + if (rq->cmd_flags & REQ_NOMERGE_FLAGS) return false; |
