OSDN Git Service

NFSv4: Ignore LAYOUTRETURN result if the layout doesn't match or is invalid
authorTrond Myklebust <trond.myklebust@primarydata.com>
Sun, 20 Nov 2016 18:13:54 +0000 (13:13 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 1 Dec 2016 22:21:43 +0000 (17:21 -0500)
commit2a974425e57fb882c93709c6072bf66d04431635
treee76a058429db171c98f5fb58e927441128b11ff7
parent68f744797edd27016055c562a605691f5d4ac933
NFSv4: Ignore LAYOUTRETURN result if the layout doesn't match or is invalid

Fix a potential race with CB_LAYOUTRECALL in which the server recalls the
remaining layout segments while our LAYOUTRETURN is still in transit.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs4proc.c
fs/nfs/pnfs.c
fs/nfs/pnfs.h