]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Fix a refcounting issue in O_DIRECT
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 19 Jun 2012 17:39:14 +0000 (13:39 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 19 Jun 2012 22:42:14 +0000 (18:42 -0400)
commit9ab2a1c9b8ff0069960ef919283132186c9c31d4
tree0bd0e628544370e9a5edabcdf0d38859d1364d6e
parentd99f5e2a7a863791fd2be30b729bc2a1ca27f862
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 <Trond.Myklebust@netapp.com>
Cc: Fred Isaman <iisaman@netapp.com>
fs/nfs/direct.c