From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DE9CB33C503; Wed, 19 Nov 2025 09:57:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763546222; cv=none; b=Wm9Hqat8Rp8oAEvha4nwar91gZuzQg/27WEldwy55zVlgSc0ibPCzjcb7dCe6Lb1kYvatJkN58HfDRYLmPo3ubc5Vme66Mm4iFM7r/j7fXEtlzirjUZTvcF1/AgmqNVxVuYjZCobFbBjBeN/f4oQiLyIEdCxZjE2Eg3ByKPBDK0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763546222; c=relaxed/simple; bh=S782cekPPBYFMzmJw77Amv/M3nrXk3xRb2V1efGBGng=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rmfHNlTCMEeam+mkm1FmDEFOISCz8/Sr5q++3r775HPB3IKlS9WFDKv5s8ONTZ+avvdGyAxxgFmu4AJJOPC4WNz5IHrtN7GQ3IrWq3pHdiJATIy+uWodPwV9PSPWzWWN4JBPkSaOY84uTJ/AgMP7ddLAud8CGylTstblHCIKL34= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 51FB068BEB; Wed, 19 Nov 2025 10:56:55 +0100 (CET) Date: Wed, 19 Nov 2025 10:56:54 +0100 From: Christoph Hellwig To: Dai Ngo Cc: Chuck Lever , jlayton@kernel.org, neilb@ownmail.net, okorniev@redhat.com, tom@talpey.com, hch@lst.de, alex.aring@gmail.com, viro@zeniv.linux.org.uk, brauner@kernel.org, jack@suse.cz, linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org Subject: Re: [PATCH v4 3/3] FSD: Fix NFS server hang when there are multiple layout conflicts Message-ID: <20251119095654.GC25764@lst.de> References: <20251115191722.3739234-1-dai.ngo@oracle.com> <20251115191722.3739234-4-dai.ngo@oracle.com> <967cc3ea-a764-4acf-b438-94a605611d86@oracle.com> Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) On Sat, Nov 15, 2025 at 12:20:43PM -0800, Dai Ngo wrote: > break_lease is called from many places - the NFS client and server, > CIFS and VFS. Many of these callers do not handle error returned > from break_lease, some don't even check return value from break_lease. > > Until we fix all callers of break_lease to handle error return, which > I think it's much more involved, returning error from break_lease is > not possible. There is about a dozen callers. Although some might not want to handle this error, having a flags argument to opt into for the callers that can and want is entirely reasonable. > I have plan to post a separate patch to check for layout conflict > caused from the same client and skip the recall - same as what's > currently done for delegation conflict. That would be very useful.