OSDN Git Service

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)
commit5011af4c698a95b4dc4e374b1ce3acd122a9170f
tree963befb8ca298ac85242f9916fc808de07c33420
parent16f8f894108270fd99667f06bae6ebcdd0f4e4bf
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