]> Git Repo - linux.git/commit - fs/nfs/direct.c
NFS: Fix a refcounting issue in O_DIRECT
authorTrond Myklebust <[email protected]>
Tue, 19 Jun 2012 17:39:14 +0000 (13:39 -0400)
committerTrond Myklebust <[email protected]>
Tue, 19 Jun 2012 22:42:14 +0000 (18:42 -0400)
commit5a695da26367f53a368c90435e0b883c12f02791
tree0bd0e628544370e9a5edabcdf0d38859d1364d6e
parent0a9c63fae7df086ff5e107273c3cce8642430974
NFS: Fix a refcounting issue in O_DIRECT

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
This page took 0.054893 seconds and 4 git commands to generate.