]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
pNFS: Fix races between return-on-close and layoutreturn.
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 9 Jul 2015 16:40:01 +0000 (18:40 +0200)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Sat, 11 Jul 2015 14:16:16 +0000 (16:16 +0200)
commit7f27392cd4cbcadeeaff9eedebcaec8fae9aec8e
treec7533a097acf5501b5a0451cc713feb3bcefc597
parentdf9cecc1a36d70ec09d34e83bad452064754fdc4
pNFS: Fix races between return-on-close and layoutreturn.

If one or more of the layout segments reports an error during I/O, then
we may have to send a layoutreturn to report the error back to the NFS
metadata server.
This patch ensures that the return-on-close code can detect the
outstanding layoutreturn, and not preempt it.

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