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)
commit044b541c11fdb7f51e5177a32ab99aae43b285ef
tree5a319c2ff933c3b7905751ff4522f4830bd07abd
parentf1b7b862bf79dc9bf29dd59654c5d765b572411e
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