pNFS: The client must not do I/O to the DS if it's lease has expired
[firefly-linux-kernel-4.4.55.git] / fs / nfs / pnfs.c
index bec0384499f76dd1acc8fb13bbf34c2ee17e6a9b..ae340aca84c1a9128b75ca040b4c3e7bff5ea67d 100644 (file)
@@ -1530,6 +1530,7 @@ pnfs_update_layout(struct inode *ino,
                goto out;
 
 lookup_again:
+       nfs4_client_recover_expired_lease(clp);
        first = false;
        spin_lock(&ino->i_lock);
        lo = pnfs_find_alloc_layout(ino, ctx, gfp_flags);