From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?windows-1252?Q?Roger_Pau_Monn=E9?= Subject: Re: [PATCH 12/14] xen-blkback: safely unmap grants in case they are still in use Date: Fri, 23 Jan 2015 15:41:43 +0100 Message-ID: <54C25DA7.7000605@citrix.com> References: <1421682692-20628-1-git-send-email-david.vrabel@citrix.com> <1421682692-20628-13-git-send-email-david.vrabel@citrix.com> <54C23865.7010404@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YEfQj-0002ep-5K for xen-devel@lists.xenproject.org; Fri, 23 Jan 2015 14:41:49 +0000 In-Reply-To: <54C23865.7010404@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: David Vrabel , xen-devel@lists.xenproject.org Cc: Boris Ostrovsky , Jenny Herbert List-Id: xen-devel@lists.xenproject.org El 23/01/15 a les 13.02, David Vrabel ha escrit: > On 19/01/15 15:51, David Vrabel wrote: >> From: Jenny Herbert >> >> Use gnttab_unmap_refs_async() to wait until the mapped pages are no >> longer in use before unmapping them. >> >> This allows blkback to use network storage which may retain refs to >> pages in queued skbs after the block I/O has completed. > > Roger, I'd appreciate a review of this blkback change. Done. BTW, have you tested the patch setting: # echo 128 > /sys/module/xen_blkback/parameters/max_persistent_grants Without this some of the newly introduced code-paths would remain untested (replace 128 with whatever you want, or even 0). Roger.