From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43583) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtkUs-0005Sx-QK for qemu-devel@nongnu.org; Wed, 26 Nov 2014 16:51:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XtkUo-0002WA-0G for qemu-devel@nongnu.org; Wed, 26 Nov 2014 16:51:38 -0500 Received: from mx1.redhat.com ([209.132.183.28]:34158) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtkUn-0002W6-PW for qemu-devel@nongnu.org; Wed, 26 Nov 2014 16:51:33 -0500 Date: Wed, 26 Nov 2014 16:51:08 -0500 From: Mike Snitzer Message-ID: <20141126215108.GA32077@redhat.com> References: <20141120190058.GA31214@redhat.com> <20141121095456.GB8866@infradead.org> <20141121154920.GA7644@redhat.com> <54762E9A.2070007@kernel.dk> <20141126205106.GA31815@redhat.com> <54763DEC.3050207@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54763DEC.3050207@kernel.dk> Subject: Re: [Qemu-devel] virtio_blk: fix defaults for max_hw_sectors and max_segment_size List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jens Axboe Cc: martin.petersen@oracle.com, mst@redhat.com, rusty@rustcorp.com.au, qemu-devel@nongnu.org, linux-kernel@vger.kernel.org, Christoph Hellwig , dm-devel@redhat.com, Paolo Bonzini On Wed, Nov 26 2014 at 3:54pm -0500, Jens Axboe wrote: > On 11/26/2014 01:51 PM, Mike Snitzer wrote: > > On Wed, Nov 26 2014 at 2:48pm -0500, > > Jens Axboe wrote: > > > >> > >> That code isn't even in mainline, as far as I can tell... > > > > Right, it is old RHEL6 code. > > > > But I've yet to determine what changed upstream that enables this to > > "just work" with a really large max_sectors (I haven't been looking > > either). > > Kind of hard for the rest of us to say, since it's triggering a BUG in > code we don't have :-) I never asked you or others to weigh in on old RHEL6 code. Once I realized upstream worked even if max_sectors is _really_ high I said "sorry for the noise". But while you're here, I wouldn't mind getting your take on virtio-blk setting max_hw_sectors to -1U. As I said in my original reply to mst: it only makes sense to set a really high initial upper bound like that in a driver if that driver goes on to stack an underlying device's limit.