projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a9c63f
)
NFS: Fix a refcounting issue in O_DIRECT
author
Trond Myklebust
<
[email protected]
>
Tue, 19 Jun 2012 17:39:14 +0000
(13:39 -0400)
committer
Trond Myklebust
<
[email protected]
>
Tue, 19 Jun 2012 22:42:14 +0000
(18:42 -0400)
In nfs_direct_write_reschedule(), the requests from nfs_scan_commit_list
have a refcount of 2, whereas the operations in
nfs_direct_write_completion_ops expect them to have a refcount of 1.
This patch adds a call to release the extra references.
Signed-off-by: Trond Myklebust <
[email protected]
>
Cc: Fred Isaman <
[email protected]
>
fs/nfs/direct.c
patch
|
blob
|
history
diff --git
a/fs/nfs/direct.c
b/fs/nfs/direct.c
index 3168f6e3d4d4f3670b65e946bbfefcc0ada8374a..9a4cbfc85d81fd203efe4db51f8897eb6bf45185 100644
(file)
--- a/
fs/nfs/direct.c
+++ b/
fs/nfs/direct.c
@@
-490,6
+490,7
@@
static void nfs_direct_write_reschedule(struct nfs_direct_req *dreq)
dreq->error = -EIO;
spin_unlock(cinfo.lock);
}
+ nfs_release_request(req);
}
nfs_pageio_complete(&desc);