]> 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:33:39 +0000 (13:33 +0100)
commitfaa0f2b11f5e1a1c62ce3a944eda7e1056e77659
tree44a823137ac0beac4233866b2fe1e591aeda45c4
parent4418831ad11db1cfdd64dc6060db65a053007604
cifs: Move the in_send statistic to __smb_send_rqst()

[ Upstream commit fe5dbe9718c3d5f6a604b8377bd2e979c7ad5357 ]

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