]> 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)
commit0d76f839b3adb8e7423df18b6f4618a6ac20a3d1
tree5a319c2ff933c3b7905751ff4522f4830bd07abd
parent19a71cb93e41c96518eebe05bca45483f00d5863
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