From: Andy Adamson <andros@xxxxxxxxxx> Section 12.5.3 RFC 5661 "Once a client has no more layouts on a file, the layout stateid is no longer valid and MUST NOT be used. Any attempt to use such a layout stateid will result in NFS4ERR_BAD_STATEID." Signed-off-by: Andy Adamson <andros@xxxxxxxxxx> --- fs/nfs/pnfs.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c index 8b26104..3018ed6 100644 --- a/fs/nfs/pnfs.c +++ b/fs/nfs/pnfs.c @@ -625,6 +625,7 @@ pnfs_free_layout(struct pnfs_layout_type *lo, spin_lock(&clp->cl_lock); list_del_init(&lo->lo_layouts); spin_unlock(&clp->cl_lock); + pnfs_set_layout_stateid(lo, &zero_stateid); } dprintk("%s:Return\n", __func__); -- 1.6.6 -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html