diff options
author | Steve French <stfrench@microsoft.com> | 2019-09-22 08:55:46 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2019-09-24 06:48:36 +0300 |
commit | d2f15428d6a0ebfc0edc364094d7c4a2de7037ed (patch) | |
tree | e89cc8393e3d27448b96e74643263c41ac529ec3 /fs/cifs/smb2pdu.c | |
parent | 7e7db86c7e1088e768438fe6c894d748b0c32abe (diff) | |
download | linux-d2f15428d6a0ebfc0edc364094d7c4a2de7037ed.tar.xz |
smb3: fix leak in "open on server" perf counter
We were not bumping up the "open on server" (num_remote_opens)
counter (in some cases) on opens of the share root so
could end up showing as a negative value.
CC: Stable <stable@vger.kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Diffstat (limited to 'fs/cifs/smb2pdu.c')
-rw-r--r-- | fs/cifs/smb2pdu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c index 87066f1af12c..5f2491efd950 100644 --- a/fs/cifs/smb2pdu.c +++ b/fs/cifs/smb2pdu.c @@ -2352,6 +2352,7 @@ int smb311_posix_mkdir(const unsigned int xid, struct inode *inode, rqst.rq_iov = iov; rqst.rq_nvec = n_iov; + /* no need to inc num_remote_opens because we close it just below */ trace_smb3_posix_mkdir_enter(xid, tcon->tid, ses->Suid, CREATE_NOT_FILE, FILE_WRITE_ATTRIBUTES); /* resource #4: response buffer */ |