]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: Move the in_send statistic to __smb_send_rqst()
authorZhang Xiaoxu <zhangxiaoxu5@huawei.com>
Wed, 16 Nov 2022 03:11:36 +0000 (11:11 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2023 12:28:03 +0000 (13:28 +0100)
commit4f6c0331c4f7f03230ccb023c9b61d5c7416448a
treee628a3abd5e60ba38dd9fd7ed7feeff3eb7da9b1
parent77e109e14f9284a112ed7e3cf8d84c76aa891476
cifs: Move the in_send statistic to __smb_send_rqst()

[ Upstream commit d0dc41119905f740e8d5594adce277f7c0de8c92 ]

When send SMB_COM_NT_CANCEL and RFC1002_SESSION_REQUEST, the
in_send statistic was lost.

Let's move the in_send statistic to the send function to avoid
this scenario.

Fixes: 3704043d5ff0 ("[CIFS]")
Signed-off-by: Zhang Xiaoxu <zhangxiaoxu5@huawei.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/cifs/transport.c