cifs: smbd: Update receive credits before sending and deal with credits roll back...
authorLong Li <longli@microsoft.com>
Thu, 2 Apr 2020 20:42:06 +0000 (13:42 -0700)
committerSteve French <stfrench@microsoft.com>
Tue, 7 Apr 2020 17:41:16 +0000 (12:41 -0500)
commitd4e5160d1a0bf089af41c21f273a507e6ace45cd
tree27691d264d448e7b08419eff205e4a27eb737111
parent3ffbe78aff93586d3e09e8af4501c563ab367c75
cifs: smbd: Update receive credits before sending and deal with credits roll back on failure before sending

Recevie credits should be updated before sending the packet, not
before a work is scheduled. Also, the value needs roll back if
something fails and cannot send.

Signed-off-by: Long Li <longli@microsoft.com>
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smbdirect.c