]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite37e1eb1c2791bb78b10569f1da727ba7f10a9f7
tree102ac3e83e2af040b243246c8c771e4cef60c69d
parenta6ba9948959332a82aac6a81999b0ca4c38893ca
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