]> git.proxmox.com Git - mirror_ubuntu-focal-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)
committerSeth Forshee <seth.forshee@canonical.com>
Mon, 6 Jan 2020 13:57:24 +0000 (07:57 -0600)
commita2bc4f767c8c265757e67711c1714710728342c6
tree7a66bd643df8c34d2be0a04f8ae6246ea041b393
parent679524b572c8d6db70cd2711e8a645b2a5259e10
cifs: smbd: Only queue work for error recovery on memory registration

BugLink: https://bugs.launchpad.net/bugs/1858427
commit c21ce58eab1eda4c66507897207e20c82e62a5ac upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
fs/cifs/smbdirect.c