summaryrefslogtreecommitdiffstats
path: root/kernel/module.c
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2018-01-16 10:08:00 -0500
committerTrond Myklebust <trond.myklebust@primarydata.com>2018-01-16 10:13:23 -0500
commit1b8d97b0a837beaf48a8449955b52c650a7114b4 (patch)
treee76a94b4ba58ce967fb1edb1763e7ee4ca18f434 /kernel/module.c
parentf96adf1ea08a37e3739b1f929ce8318eee63b1f4 (diff)
downloadlinux-stable-1b8d97b0a837beaf48a8449955b52c650a7114b4.tar.gz
linux-stable-1b8d97b0a837beaf48a8449955b52c650a7114b4.tar.bz2
linux-stable-1b8d97b0a837beaf48a8449955b52c650a7114b4.zip
NFS: commit direct writes even if they fail partially
If some of the WRITE calls making up an O_DIRECT write syscall fail, we neglect to commit, even if some of the WRITEs succeed. We also depend on the commit code to free the reference count on the nfs_page taken in the "if (request_commit)" case at the end of nfs_direct_write_completion(). The problem was originally noticed because ENOSPC's encountered partway through a write would result in a closed file being sillyrenamed when it should have been unlinked. Signed-off-by: J. Bruce Fields <bfields@redhat.com> Cc: stable@vger.kernel.org Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'kernel/module.c')
0 files changed, 0 insertions, 0 deletions