]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Fix a request reference leak in nfs_direct_write_clear_reqs()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 31 Mar 2020 00:13:48 +0000 (20:13 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 1 Apr 2020 17:37:56 +0000 (13:37 -0400)
commitc47d10a1c012f795cbbfd3f55b3c565ceeb64c0b
tree039a517696c762c215244ff273c678ee4ef20c39
parent480f4be7a7bb83ab212bcf5a5946dea9f3b9ca4f
NFS: Fix a request reference leak in nfs_direct_write_clear_reqs()

nfs_direct_write_scan_commit_list() will lock the request and bump
the reference count, but we also need to account for the reference
that was taken when we initially added the request to the commit list.

Fixes: 4fa82a482c48 ("NFS: commit errors should be fatal")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/direct.c