cifs: smbd: Only queue work for error recovery on memory registration
authorLong Li <longli@microsoft.com>
Wed, 16 Oct 2019 20:51:55 +0000 (13:51 -0700)
committerSteve French <stfrench@microsoft.com>
Mon, 25 Nov 2019 07:16:30 +0000 (01:16 -0600)
commitc21ce58eab1eda4c66507897207e20c82e62a5ac
tree102ac3e83e2af040b243246c8c771e4cef60c69d
parent87bc2376fffae6821869c988edbb45a14527b258
cifs: smbd: Only queue work for error recovery on memory registration

It's not necessary to queue invalidated memory registration to work queue, as
all we need to do is to unmap the SG and make it usable again. This can save
CPU cycles in normal data paths as memory registration errors are rare and
normally only happens during reconnection.

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