]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite47cde99566ee5f8326e7d2735abbe8114b551b6
tree27691d264d448e7b08419eff205e4a27eb737111
parente2b917f0f03a6036a033e83181c0c1a6048098d8
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