]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: smbd: Properly process errors on ib_post_send
authorLong Li <longli@microsoft.com>
Thu, 2 Apr 2020 20:56:48 +0000 (13:56 -0700)
committerSteve French <stfrench@microsoft.com>
Tue, 7 Apr 2020 17:41:16 +0000 (12:41 -0500)
commit19a71cb93e41c96518eebe05bca45483f00d5863
tree4356e3afd64e1fa3d3732d9c66779676ddfc7cac
parent931cb457115cc51894bfe338abe39a39146a53ae
cifs: smbd: Properly process errors on ib_post_send

When processing errors from ib_post_send(), the transport state needs to be
rolled back to the condition before the error.

Refactor the old code to make it easy to roll back on IB errors, and fix this.

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