From: Rusty Russell <rusty@rustcorp.com.au>
To: Mike Snitzer <snitzer@redhat.com>, "Michael S. Tsirkin" <mst@redhat.com>
Cc: axboe@kernel.dk, linux-kernel@vger.kernel.org,
martin.petersen@oracle.com, hch@infradead.org,
dm-devel@redhat.com
Subject: Re: virtio_blk: fix defaults for max_hw_sectors and max_segment_size
Date: Wed, 26 Nov 2014 16:28:27 +1030 [thread overview]
Message-ID: <87bnnuy03g.fsf@rustcorp.com.au> (raw)
In-Reply-To: <20141120211521.GA846@redhat.com>
Mike Snitzer <snitzer@redhat.com> writes:
> On Thu, Nov 20 2014 at 3:30pm -0500,
> Michael S. Tsirkin <mst@redhat.com> wrote:
>
>> On Thu, Nov 20, 2014 at 02:00:59PM -0500, Mike Snitzer wrote:
>> > virtio_blk incorrectly established -1U as the default for these
>> > queue_limits. Set these limits to sane default values to avoid crashing
>> > the kernel.
> ...
>> > Attempting to mkfs.xfs against a thin device from this thin-pool quickly
>> > resulted in fs/direct-io.c:dio_send_cur_page()'s BUG_ON.
>>
>> Why exactly does it BUG_ON?
>> Did some memory allocation fail?
>
> No idea, kernel log doesn't say.. all it has is "kernel BUG" pointing to
> fs/direct-io.c:dio_send_cur_page()'s BUG_ON.
>
> I could dig deeper on _why_ but honestly, there really isn't much point.
There is *always* a point in understanding the code you are modifying.
> virtio-blk doesn't get to live in fantasy-land just because it happens
> to think it is limitless.
Calm down please.
We don't have a sector limit. We have a segment limit, which is set
above this line.
Cheers,
Rusty.
next prev parent reply other threads:[~2014-11-26 5:58 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-20 19:00 [PATCH] virtio_blk: fix defaults for max_hw_sectors and max_segment_size Mike Snitzer
2014-11-20 20:30 ` Michael S. Tsirkin
2014-11-20 21:15 ` Mike Snitzer
2014-11-26 5:58 ` Rusty Russell [this message]
2014-11-26 14:10 ` Mike Snitzer
2014-11-21 1:59 ` Mike Snitzer
2014-11-21 2:11 ` [PATCH v2] " Mike Snitzer
2014-11-21 9:54 ` [PATCH] " Christoph Hellwig
2014-11-21 9:54 ` [Qemu-devel] " Christoph Hellwig
2014-11-21 15:49 ` Mike Snitzer
2014-11-21 15:49 ` [Qemu-devel] " Mike Snitzer
2014-11-26 19:48 ` Jens Axboe
2014-11-26 19:48 ` [Qemu-devel] " Jens Axboe
2014-11-26 20:51 ` Mike Snitzer
2014-11-26 20:51 ` [Qemu-devel] " Mike Snitzer
2014-11-26 20:54 ` Jens Axboe
2014-11-26 20:54 ` [Qemu-devel] " Jens Axboe
2014-11-26 21:51 ` Mike Snitzer
2014-11-26 21:51 ` [Qemu-devel] " Mike Snitzer
2014-11-26 21:51 ` Mike Snitzer
2014-11-26 21:53 ` Jens Axboe
2014-11-26 21:53 ` [Qemu-devel] " Jens Axboe
2014-11-26 23:00 ` Mike Snitzer
2014-11-26 23:00 ` [Qemu-devel] " Mike Snitzer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bnnuy03g.fsf@rustcorp.com.au \
--to=rusty@rustcorp.com.au \
--cc=axboe@kernel.dk \
--cc=dm-devel@redhat.com \
--cc=hch@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=mst@redhat.com \
--cc=snitzer@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.