From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Egger, Christoph" Subject: Re: [PATCH v3 1/2] gnttab: Introduce rwlock to protect updates to grant table state Date: Fri, 9 Jan 2015 14:05:13 +0100 Message-ID: <54AFD209.70209@amazon.de> References: <1417616967-18720-1-git-send-email-chegger@amazon.de> <1417616967-18720-2-git-send-email-chegger@amazon.de> <5492CA7502000078000508E8@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5492CA7502000078000508E8@mail.emea.novell.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: Jan Beulich Cc: Julien Grall , Keir Fraser , Matt Wilson , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On 2014/12/18 12:37, Jan Beulich wrote: >>>> On 03.12.14 at 15:29, wrote: >> --- a/xen/common/grant_table.c >> +++ b/xen/common/grant_table.c [...] >> @@ -944,6 +944,7 @@ __gnttab_unmap_common( >> } >> >> op->rd = rd; >> + read_lock(&rgt->lock); >> act = &active_entry(rgt, op->map->ref); >> >> if ( op->frame == 0 ) > > The nesting of the two locks should be mentioned in the doc change. Where do you see the nesting coming from? Christoph