Merge branch 'linux-next' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6.git

This commit is contained in:
Stephen Rothwell 2024-12-20 09:19:23 +11:00
commit a81b732739
2 changed files with 2 additions and 1 deletions

View File

@ -1308,7 +1308,7 @@ pnfs_prepare_layoutreturn(struct pnfs_layout_hdr *lo,
enum pnfs_iomode *iomode)
{
/* Serialise LAYOUTGET/LAYOUTRETURN */
if (atomic_read(&lo->plh_outstanding) != 0)
if (atomic_read(&lo->plh_outstanding) != 0 && lo->plh_return_seq == 0)
return false;
if (test_and_set_bit(NFS_LAYOUT_RETURN_LOCK, &lo->plh_flags))
return false;

View File

@ -73,6 +73,7 @@
#include "nfs.h"
#include "netns.h"
#include "sysfs.h"
#include "nfs4idmap.h"
#define NFSDBG_FACILITY NFSDBG_VFS