Return-Path: linux-nfs-owner@vger.kernel.org Received: from natasha.panasas.com ([67.152.220.90]:41153 "EHLO natasha.panasas.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751371Ab2FKQOc (ORCPT ); Mon, 11 Jun 2012 12:14:32 -0400 Message-ID: <4FD61957.1070900@panasas.com> Date: Mon, 11 Jun 2012 19:14:15 +0300 From: Boaz Harrosh MIME-Version: 1.0 To: "Adamson, Andy" CC: Benny Halevy , "Welch, Brent" , "Bhamare, Sachin" , Andy Adamson , "Myklebust, Trond" , "" , "Huang, James" Subject: Re: [PATCH 2/3] NFSv4.1 mark layout when already returned References: <1338571178-2096-1-git-send-email-andros@netapp.com> <1338571178-2096-2-git-send-email-andros@netapp.com> <4FCA98E7.2030006@panasas.com> <1C92D18B-1977-4A12-A4DA-84DAC4B3E81E@netapp.com> <4FCE1DC1.6050100@panasas.com> <4FD5C0EA.806@tonian.com> <4FD5CBF6.6030800@panasas.com> <4FD5FAEF.5040004@tonian.com> <47AB2031-76C2-4E10-9C55-D328E2994780@netapp.com> <4FD605DA.2070203@panasas.com> <005343AE-888D-4CE1-A928-685252AE9C84@netapp.com> In-Reply-To: <005343AE-888D-4CE1-A928-685252AE9C84@netapp.com> Content-Type: text/plain; charset="UTF-8" Sender: linux-nfs-owner@vger.kernel.org List-ID: On 06/11/2012 06:41 PM, Adamson, Andy wrote: > On Jun 11, 2012, at 10:51 AM, Boaz Harrosh wrote: >> I'm not sure I understood what you meant. >> >> In the "normal behavior" we don't send a LAYOUTRETURN at all >> in the forgetful model. Which proved beneficiary in the light >> of concurrent GETs vs RETURNs. >> >> I thought we are only taking about the error case. Do you >> mean there is a 3rd case? please explain. > > The normal case of calling LAYOUTRETURN on evict inode. > evict LAYOUTRETURN is mute because evict() means inode has no more references, which specifically means no more layout_segments which hold a reference on the inode. The interesting part is the error-handling case, on one of the layout_segments. What are we aloud to do after we send the LAYOUTRETURN to MDS. It's what I'm talking about, and is a part of of the general error-reporting in 4.2 to come. Boaz > -->Andy > >> >> Thanks >> Boaz >