From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39350) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIK7h-00075m-26 for qemu-devel@nongnu.org; Mon, 02 Feb 2015 11:45:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YIK7c-0008Bz-Lh for qemu-devel@nongnu.org; Mon, 02 Feb 2015 11:45:17 -0500 Received: from mx1.redhat.com ([209.132.183.28]:58052) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YIK7c-0008Bh-FG for qemu-devel@nongnu.org; Mon, 02 Feb 2015 11:45:12 -0500 Date: Mon, 2 Feb 2015 17:45:03 +0100 From: Kevin Wolf Message-ID: <20150202164503.GA19586@noname.redhat.com> References: <1422888514-6495-1-git-send-email-pl@kamp.de> <20150202161332.GK9478@noname.redhat.com> <54CFA4DE.702@openvz.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54CFA4DE.702@openvz.org> Subject: Re: [Qemu-devel] [PATCH] block: change default for discard and write zeroes to INT_MAX List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Denis V. Lunev" Cc: Peter Lieven , qemu-devel@nongnu.org Am 02.02.2015 um 17:25 hat Denis V. Lunev geschrieben: > On 02/02/15 19:13, Kevin Wolf wrote: > >Am 02.02.2015 um 15:48 hat Peter Lieven geschrieben: > >>do not trim requests if the driver does not supply a limit > >>through BlockLimits. For write zeroes we still keep a limit > >>for the unsupported path to avoid allocating a big bounce buffer. > >> > >>Suggested-by: Kevin Wolf > >>Suggested-by: Denis V. Lunev > >>Signed-off-by: Peter Lieven > >Thanks, applied to the block branch (and removed 'block/raw-posix: set > >max_write_zeroes to INT_MAX for regular files' from the queue). > > > >Kevin > double checked the code. > > There are 2 things to patch for discard, write_zeroes is OK for me. > Sorry, for not paying attention for discard branch :( Good catch, thanks! But shouldn't we use the actual limits instead of INT_MAX, i.e. SIZE_MAX for gluster and UINT32_MAX for nbd? Kevin