NFS: fix directio refcount bug on commit
authorFred Isaman <iisaman@netapp.com>
Fri, 8 Jun 2012 20:48:33 +0000 (16:48 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sat, 9 Jun 2012 18:32:45 +0000 (14:32 -0400)
commit906369e43c29001c39c7dfed8a01b9dff24ace75
tree5b5323abf891a08907492a050909caaebbae0e89
parent2d0dbc6ae8a5194aaecb9cfffb9053f38fce8b86
NFS: fix directio refcount bug on commit

This reverts a hunk from commit 04277086577
"NFS: Clean up - Simplify reference counting in fs/nfs/direct.c"

The cleanups in that patch affect the write path, but by the time
processing hits commit the removed reference has been added back by
nfs_scan_commit_list().  Without this reversion, any page that is
sent to commit holds on to an unbalanced reference that is never
freed.  The immediate effect is an imbalance over the wire between
OPENs and CLOSEs.

Signed-off-by: Fred Isaman <iisaman@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/direct.c