RE: [PATCH v2] pNFS: deadlock in pnfs_send_layoutreturn
From: Ben Roberts
Date: Wed Apr 22 2026 - 06:49:00 EST
Hi Ben,
> The kzalloc failure is definitely a rarely-used/tested path, so its possible
> there's an issue there no one has seen yet, but from what I can see it looks
> like every call to pnfs_send_layoutreturn() first calls
> pnfs_prepare_layoutreturn(), which already clears
> NFS_LAYOUT_RETURN_REQUESTED. I don't see how you can end up with another
> proccess seeing the flag.
Understood, thank you for the feedback here. I withdraw the patch request and
will take this back to the drawing board. Likely removing the patch from local
systems and looking to capture more useful diagnostics if/when the problem
reoccurs.
> There's at least one body of work in this area that your systems
> don't yet have:
> https://lore.kernel.org/linux-nfs/20240613050055.854323-1-trond.myklebust@xxxxxxxxxxxxxxx/
For what it's worth, I checked this patch set and the changes are almost
completely present in the EL source. Patch 2 is only partially applied.
Ben Roberts
For details of how GSA uses your personal information, please see our Privacy Notice here: https://www.gsacapital.com/privacy-notice
This email and any files transmitted with it contain confidential and proprietary information and is solely for the use of the intended recipient.
If you are not the intended recipient please return the email to the sender and delete it from your computer and you must not use, disclose, distribute, copy, print or rely on this email or its contents.
This communication is for informational purposes only.
It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction.
Any comments or statements made herein do not necessarily reflect those of GSA Capital.
GSA Capital Partners LLP is authorised and regulated by the Financial Conduct Authority and is registered in England and Wales at Stratton House, 5 Stratton Street, London W1J 8LA, number OC309261.
GSA Capital Services Limited is registered in England and Wales at the same address, number 5320529.