block: blk-merge: remove unnecessary check
In this case, 'sectors' can't be zero at all, so remove the check and let the bio be split. Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
a2d37968d7
commit
cf8c0c6a38
1 changed files with 1 additions and 3 deletions
|
@ -129,9 +129,7 @@ static struct bio *blk_bio_segment_split(struct request_queue *q,
|
|||
nsegs++;
|
||||
sectors = max_sectors;
|
||||
}
|
||||
if (sectors)
|
||||
goto split;
|
||||
/* Make this single bvec as the 1st segment */
|
||||
goto split;
|
||||
}
|
||||
|
||||
if (bvprvp && blk_queue_cluster(q)) {
|
||||
|
|
Loading…
Reference in a new issue