|
@@ -775,10 +775,8 @@ static void nfs_direct_write_completion(struct nfs_pgio_header *hdr)
|
|
|
|
|
|
spin_lock(&dreq->lock);
|
|
spin_lock(&dreq->lock);
|
|
|
|
|
|
- if (test_bit(NFS_IOHDR_ERROR, &hdr->flags)) {
|
|
|
|
- dreq->flags = 0;
|
|
|
|
|
|
+ if (test_bit(NFS_IOHDR_ERROR, &hdr->flags))
|
|
dreq->error = hdr->error;
|
|
dreq->error = hdr->error;
|
|
- }
|
|
|
|
if (dreq->error == 0) {
|
|
if (dreq->error == 0) {
|
|
nfs_direct_good_bytes(dreq, hdr);
|
|
nfs_direct_good_bytes(dreq, hdr);
|
|
if (nfs_write_need_commit(hdr)) {
|
|
if (nfs_write_need_commit(hdr)) {
|