Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1674676 > unrolled thread
| Started by | Ming Lei <ming.lei@redhat.com> |
|---|---|
| First post | 2017-06-26 14:20 +0200 |
| Last post | 2017-06-26 14:20 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH v2 25/51] block: blk-merge: remove unnecessary check Ming Lei <ming.lei@redhat.com> - 2017-06-26 14:20 +0200
| From | Ming Lei <ming.lei@redhat.com> |
|---|---|
| Date | 2017-06-26 14:20 +0200 |
| Subject | [PATCH v2 25/51] block: blk-merge: remove unnecessary check |
| Message-ID | <tWB9N-2fr-45@gated-at.bofh.it> |
In this case, 'sectors' can't be zero at all, so remove the check
and let the bio be splitted.
Signed-off-by: Ming Lei <ming.lei@redhat.com>
---
block/blk-merge.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/block/blk-merge.c b/block/blk-merge.c
index bf7a0fa0199f..c6fcc49b9aea 100644
--- a/block/blk-merge.c
+++ b/block/blk-merge.c
@@ -128,9 +128,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)) {
--
2.9.4
Back to top | Article view | linux.kernel
csiph-web