]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: smbd: Do not schedule work to send immediate packet on every receive
authorLong Li <longli@microsoft.com>
Wed, 1 Apr 2020 03:59:23 +0000 (20:59 -0700)
committerSteve French <stfrench@microsoft.com>
Tue, 7 Apr 2020 17:41:16 +0000 (12:41 -0500)
commit95834f13d081fb16f4769d440751054caa9e98b8
tree5a319c2ff933c3b7905751ff4522f4830bd07abd
parentf79e861db4e8cf2ede4f384dceb0d5a1116df691
cifs: smbd: Do not schedule work to send immediate packet on every receive

Immediate packets should only be sent to peer when there are new
receive credits made available. New credits show up on freeing
receive buffer, not on receiving data.

Fix this by avoid unnenecessary work schedules.

Signed-off-by: Long Li <longli@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smbdirect.c
fs/cifs/smbdirect.h