nfsd: Add layouts checking in client_has_state()
authorKinglong Mee <kinglongmee@gmail.com>
Tue, 21 Jul 2015 05:09:17 +0000 (13:09 +0800)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 10 Aug 2015 20:05:46 +0000 (16:05 -0400)
commit47e970bee7e83d997be11d91d2fbc7f64c8bb89e
treef34c43211bd9aaa469125068a2b571554ad53064
parentaf9dbaf48d00a34c2933ed0c0e9c82b37eb16356
nfsd: Add layouts checking in client_has_state()

Layout is a state resource, nfsd should check it too.

v2, drop unneeded updating in nfsd4_renew()
v3, fix compile error without CONFIG_NFSD_PNFS

Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c