Displaying 5 results from an estimated 5 matches for "merge_not_need".
2014 Nov 11
2
kernel BUG at drivers/block/virtio_blk.c:172!
...(-)
diff --git a/block/blk-merge.c b/block/blk-merge.c
index b3ac40a..d808601 100644
--- a/block/blk-merge.c
+++ b/block/blk-merge.c
@@ -103,13 +103,16 @@ void blk_recount_segments(struct request_queue *q, struct bio *bio)
if (no_sg_merge && !bio_flagged(bio, BIO_CLONED) &&
merge_not_need)
- bio->bi_phys_segments = bio->bi_vcnt;
+ bio->bi_phys_segments = min_t(unsigned int, bio->bi_vcnt,
+ queue_max_segments(q));
else {
struct bio *nxt = bio->bi_next;
bio->bi_next = NULL;
- bio->bi_phys_segments = __blk_recalc_rq_segments(q, bio,
- no_sg_merge...
2014 Nov 11
2
kernel BUG at drivers/block/virtio_blk.c:172!
...(-)
diff --git a/block/blk-merge.c b/block/blk-merge.c
index b3ac40a..d808601 100644
--- a/block/blk-merge.c
+++ b/block/blk-merge.c
@@ -103,13 +103,16 @@ void blk_recount_segments(struct request_queue *q, struct bio *bio)
if (no_sg_merge && !bio_flagged(bio, BIO_CLONED) &&
merge_not_need)
- bio->bi_phys_segments = bio->bi_vcnt;
+ bio->bi_phys_segments = min_t(unsigned int, bio->bi_vcnt,
+ queue_max_segments(q));
else {
struct bio *nxt = bio->bi_next;
bio->bi_next = NULL;
- bio->bi_phys_segments = __blk_recalc_rq_segments(q, bio,
- no_sg_merge...
2014 Nov 11
0
kernel BUG at drivers/block/virtio_blk.c:172!
...; index b3ac40a..d808601 100644
> --- a/block/blk-merge.c
> +++ b/block/blk-merge.c
> @@ -103,13 +103,16 @@ void blk_recount_segments(struct request_queue *q, struct bio *bio)
>
> if (no_sg_merge && !bio_flagged(bio, BIO_CLONED) &&
> merge_not_need)
> - bio->bi_phys_segments = bio->bi_vcnt;
> + bio->bi_phys_segments = min_t(unsigned int, bio->bi_vcnt,
> + queue_max_segments(q));
> else {
> struct bio *nxt = bio->bi_next;
>
>...
2014 Nov 10
2
kernel BUG at drivers/block/virtio_blk.c:172!
On 2014-11-10 02:59, Rusty Russell wrote:
> Jeff Layton <jlayton at poochiereds.net> writes:
>
>> In the latest Fedora rawhide kernel in the repos, I'm seeing the
>> following oops when mounting xfs. rc2-ish kernels seem to be fine:
>>
>> [ 64.669633] ------------[ cut here ]------------
>> [ 64.670008] kernel BUG at drivers/block/virtio_blk.c:172!
2014 Nov 10
2
kernel BUG at drivers/block/virtio_blk.c:172!
On 2014-11-10 02:59, Rusty Russell wrote:
> Jeff Layton <jlayton at poochiereds.net> writes:
>
>> In the latest Fedora rawhide kernel in the repos, I'm seeing the
>> following oops when mounting xfs. rc2-ish kernels seem to be fine:
>>
>> [ 64.669633] ------------[ cut here ]------------
>> [ 64.670008] kernel BUG at drivers/block/virtio_blk.c:172!