Skip to content

Commit 4a5da3f

Browse files
committed
Merge tag 'nfs-for-6.13-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs
Pull NFS client fixes from Trond Myklebust: - NFS/pnfs: Fix a live lock between recalled layouts and layoutget - Fix a build warning about an undeclared symbol 'nfs_idmap_cache_timeout' * tag 'nfs-for-6.13-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs: fs/nfs: fix missing declaration of nfs_idmap_cache_timeout NFS/pnfs: Fix a live lock between recalled layouts and layoutget
2 parents 7684392 + bedb4e6 commit 4a5da3f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

fs/nfs/pnfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1308,7 +1308,7 @@ pnfs_prepare_layoutreturn(struct pnfs_layout_hdr *lo,
13081308
enum pnfs_iomode *iomode)
13091309
{
13101310
/* Serialise LAYOUTGET/LAYOUTRETURN */
1311-
if (atomic_read(&lo->plh_outstanding) != 0)
1311+
if (atomic_read(&lo->plh_outstanding) != 0 && lo->plh_return_seq == 0)
13121312
return false;
13131313
if (test_and_set_bit(NFS_LAYOUT_RETURN_LOCK, &lo->plh_flags))
13141314
return false;

fs/nfs/super.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
#include "nfs.h"
7474
#include "netns.h"
7575
#include "sysfs.h"
76+
#include "nfs4idmap.h"
7677

7778
#define NFSDBG_FACILITY NFSDBG_VFS
7879

0 commit comments

Comments
 (0)