diff options
-rw-r--r-- | fs/nfs/pnfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c index bda88a27507..174c51a5001 100644 --- a/fs/nfs/pnfs.c +++ b/fs/nfs/pnfs.c | |||
@@ -331,6 +331,8 @@ pnfs_layout_remove_lseg(struct pnfs_layout_hdr *lo, | |||
331 | list_del_init(&lseg->pls_list); | 331 | list_del_init(&lseg->pls_list); |
332 | /* Matched by pnfs_get_layout_hdr in pnfs_layout_insert_lseg */ | 332 | /* Matched by pnfs_get_layout_hdr in pnfs_layout_insert_lseg */ |
333 | atomic_dec(&lo->plh_refcount); | 333 | atomic_dec(&lo->plh_refcount); |
334 | if (list_empty(&lo->plh_segs)) | ||
335 | clear_bit(NFS_LAYOUT_BULK_RECALL, &lo->plh_flags); | ||
334 | rpc_wake_up(&NFS_SERVER(inode)->roc_rpcwaitq); | 336 | rpc_wake_up(&NFS_SERVER(inode)->roc_rpcwaitq); |
335 | } | 337 | } |
336 | 338 | ||