]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: Fix stable writes
authorTrond Myklebust <trondmy@gmail.com>
Mon, 6 Jan 2020 18:40:30 +0000 (13:40 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 22 Jan 2020 21:25:40 +0000 (16:25 -0500)
commit5742383a424f8995945efef4b96642111fc0930f
tree963befb8ca298ac85242f9916fc808de07c33420
parent2be7eb2c987878bbfa552f241fcf3b514078e339
nfsd: Fix stable writes

Strictly speaking, a stable write error needs to reflect the
write + the commit of that write (and only that write). To
ensure that we don't pick up the write errors from other
writebacks, add a rw_semaphore to provide exclusion.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/filecache.c
fs/nfsd/filecache.h
fs/nfsd/vfs.c