diff options
author | Mike Christie <mchristi@redhat.com> | 2016-06-05 15:32:15 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-06-07 15:41:38 -0400 |
commit | 8fe0d473f5477e9916d3ac581a226acfe83142be (patch) | |
tree | a433795d1ad57cd0b2fdf64e6d3b7ae579abfd78 /block/blk-core.c | |
parent | 63a4cc24867de73626e16767ce616c50dc5438d3 (diff) |
block: convert merge/insert code to check for REQ_OPs.
This patch converts the block layer merging code to use separate variables
for the operation and flags, and to check req_op for the REQ_OP.
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 'block/blk-core.c')
-rw-r--r-- | block/blk-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index 090e55d7cad7..1333bb764b28 100644 --- a/block/blk-core.c +++ b/block/blk-core.c | |||
@@ -2161,7 +2161,7 @@ EXPORT_SYMBOL(submit_bio); | |||
2161 | static int blk_cloned_rq_check_limits(struct request_queue *q, | 2161 | static int blk_cloned_rq_check_limits(struct request_queue *q, |
2162 | struct request *rq) | 2162 | struct request *rq) |
2163 | { | 2163 | { |
2164 | if (blk_rq_sectors(rq) > blk_queue_get_max_sectors(q, rq->cmd_flags)) { | 2164 | if (blk_rq_sectors(rq) > blk_queue_get_max_sectors(q, req_op(rq))) { |
2165 | printk(KERN_ERR "%s: over max size limit.\n", __func__); | 2165 | printk(KERN_ERR "%s: over max size limit.\n", __func__); |
2166 | return -EIO; | 2166 | return -EIO; |
2167 | } | 2167 | } |