diff options
author | 2020-05-13 11:53:30 +0000 | |
---|---|---|
committer | 2020-05-14 17:47:01 -0500 | |
commit | a48137996063d22ffba77e077425f49873856ca5 (patch) | |
tree | 0ea55985df6a5836586ceaee78db68b026523f26 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | cifs: Fix null pointer check in cifs_read (diff) | |
download | linux-dev-a48137996063d22ffba77e077425f49873856ca5.tar.xz linux-dev-a48137996063d22ffba77e077425f49873856ca5.zip |
cifs: fix leaked reference on requeued write
Failed async writes that are requeued may not clean up a refcount
on the file, which can result in a leaked open. This scenario arises
very reliably when using persistent handles and a reconnect occurs
while writing.
cifs_writev_requeue only releases the reference if the write fails
(rc != 0). The server->ops->async_writev operation will take its own
reference, so the initial reference can always be released.
Signed-off-by: Adam McCoy <adam@forsedomani.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
CC: Stable <stable@vger.kernel.org>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions