From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from merit-proxy01.merit.edu ([207.75.116.193]:52359 "EHLO merit-proxy01.merit.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752090Ab1GZQIX (ORCPT ); Tue, 26 Jul 2011 12:08:23 -0400 Date: Tue, 26 Jul 2011 12:08:05 -0400 From: Jim Rees To: "Myklebust, Trond" Cc: Peng Tao , tao.peng@emc.com, linux-nfs@vger.kernel.org, bhalevy@tonian.com Subject: Re: [PATCH] NFS41: Drop lseg ref before fallthru to MDS Message-ID: <20110726160805.GA1922@merit.edu> References: <1309743002-1658-1-git-send-email-bergwolf@gmail.com> <4E18614C.4010002@tonian.com> <1311621204.28209.14.camel@lade.trondhjem.org> <2E1EB2CF9ED1CB4AA966F0EB76EAB4430A51825D@SACMVEXC2-PRD.hq.netapp.com> Content-Type: text/plain; charset=us-ascii In-Reply-To: <2E1EB2CF9ED1CB4AA966F0EB76EAB4430A51825D@SACMVEXC2-PRD.hq.netapp.com> Sender: linux-nfs-owner@vger.kernel.org List-ID: MIME-Version: 1.0 Myklebust, Trond wrote: > Thanks for your explanation. Is there any plan on how to fix > pnfs_ld_read/write_done? Basically, we would need an interface that > can redirect the IO to MDS if pnfs_error is set or do all necessary > cleanup work to end read/write if pnfs_error is 0. IMHO, the > recoalesce logic need to access nfs_pageio_descriptor but we do not > have that information at pnfs_ld_read/write_done. As far as I can see, the right thing to do is to mark the layout as invalid and then redirty the page. It should be easy to have fsync() re-send the pages in this case. These should be extremely rare events, since we expect to catch most of the pNFS failures when we do the actual LAYOUTGET in the ->pg_init(). My main worry is for aio/dio where there is no good mechanism for retrying. I'm still working on that... What do you suggest we do for the current set of patches that add block layout to pnfs?