We don't know if the error returned by the fsync() call is
exclusive to the data written by the stable write, so play it
safe.
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
                host_err = vfs_iter_write(file, &iter, &pos, flags);
                up_read(&nf->nf_rwsem);
        }
-       if (host_err < 0)
+       if (host_err < 0) {
+               nfsd_reset_boot_verifier(net_generic(SVC_NET(rqstp),
+                                        nfsd_net_id));
                goto out_nfserr;
+       }
        *cnt = host_err;
        nfsdstats.io_write += *cnt;
        fsnotify_modify(file);