]> git.baikalelectronics.ru Git - kernel.git/commit
nfs: nfs_file_write() should check for writeback errors
authorScott Mayhew <smayhew@redhat.com>
Sat, 1 Aug 2020 11:10:39 +0000 (07:10 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 5 Aug 2020 03:16:36 +0000 (23:16 -0400)
commit4a50b9c69c8128fd1b96931dbdb229813f25e36a
tree21c31d963e4da18bd140e27ed5e861eb98a7782b
parent06c5ef6dfdd7599a5c93bbd5284a2d1ba0065be2
nfs: nfs_file_write() should check for writeback errors

The NFS_CONTEXT_ERROR_WRITE flag (as well as the check of said flag) was
removed by commit fce4e8f20018.  The absence of an error check allows
writes to be continually queued up for a server that may no longer be
able to handle them.  Fix it by adding an error check using the generic
error reporting functions.

Fixes: fce4e8f20018 ("NFS: Replace custom error reporting mechanism with generic one")
Signed-off-by: Scott Mayhew <smayhew@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/file.c