diff options
Diffstat (limited to 'block/blk-core.c')
-rw-r--r-- | block/blk-core.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index 36c0deebc2dc..9fe174dc74d1 100644 --- a/block/blk-core.c +++ b/block/blk-core.c | |||
@@ -1614,8 +1614,7 @@ int blk_rq_check_limits(struct request_queue *q, struct request *rq) | |||
1614 | * limitation. | 1614 | * limitation. |
1615 | */ | 1615 | */ |
1616 | blk_recalc_rq_segments(rq); | 1616 | blk_recalc_rq_segments(rq); |
1617 | if (rq->nr_phys_segments > queue_max_phys_segments(q) || | 1617 | if (rq->nr_phys_segments > queue_max_segments(q)) { |
1618 | rq->nr_phys_segments > queue_max_hw_segments(q)) { | ||
1619 | printk(KERN_ERR "%s: over max segments limit.\n", __func__); | 1618 | printk(KERN_ERR "%s: over max segments limit.\n", __func__); |
1620 | return -EIO; | 1619 | return -EIO; |
1621 | } | 1620 | } |