]> git.baikalelectronics.ru Git - kernel.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)
commitaae904207aaf661379c67fb5eebf207694b80519
treec7533a097acf5501b5a0451cc713feb3bcefc597
parentb82f979403ad55e81eb1a64d160ba17cf27939d4
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