Return-Path: Received: from discipline.rit.edu ([129.21.6.207]:40589 "HELO discipline.rit.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752185AbcF1MyA (ORCPT ); Tue, 28 Jun 2016 08:54:00 -0400 From: Andrew W Elble To: Jeff Layton Cc: Trond Myklebust , Anna Schumaker , Thomas Haynes , linux-nfs@vger.kernel.org, hch@lst.de Subject: Re: [PATCH v4 12/13] pnfs: rework LAYOUTGET retry handling References: <1463502528-11519-1-git-send-email-jeff.layton@primarydata.com> <1463502528-11519-13-git-send-email-jeff.layton@primarydata.com> <1467116540.32374.5.camel@poochiereds.net> Date: Tue, 28 Jun 2016 08:53:59 -0400 In-Reply-To: <1467116540.32374.5.camel@poochiereds.net> (Jeff Layton's message of "Tue, 28 Jun 2016 08:22:20 -0400") Message-ID: MIME-Version: 1.0 Content-Type: text/plain Sender: linux-nfs-owner@vger.kernel.org List-ID: >> > + default: >> > + if (!nfs_error_is_fatal(PTR_ERR(lseg))) { >> > + pnfs_layout_clear_fail_bit(lo, pnfs_iomode_to_fail_bit(iomode)); >> > + lseg = NULL; >> > + } >> Seems like in the past, a non-fatal-error used to trigger the opposite >> behavior, where this would set the fail_bit? Shouldn't that be the >> behavior for -NFS4ERR_LAYOUTUNAVAILABLE (which is mapped to -ENODATA) >> etc...? >> > > Yes, and I think that was a bug. See commit > d03ab29dbbe905c6c7c5abd78e02547fa954ec07 for where that actually > changed. I think you mean: 0bcbf039f6b2bcefe4f5dada76079080edf9ecd0 ? ...and I was looking at this one: d600ad1f2bdbf97c4818dcc85b174f72c90c21bd > You do have a good point about LAYOUTUNAVAILABLE though. That probably > should stop further attempts to get a layout. That said, the error > mapping here is fiendishly complex. I always have to wonder whether > there other errors that get turned into ENODATA? It may be safest to > change the error mapping there to something more specific. If setting the fail_bit is the right way to go, that could be done with less confusion in nfs4_layoutget_handle_exception()...? -- Andrew W. Elble aweits@discipline.rit.edu Infrastructure Engineer, Communications Technical Lead Rochester Institute of Technology PGP: BFAD 8461 4CCF DC95 DA2C B0EB 965B 082E 863E C912