]> git.itanic.dy.fi Git - linux-stable/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Dec 2019 10:04:41 +0000 (11:04 +0100)
commit40d9bd5e51558512b8e31f0007b50503a3960881
treec3e8a0b1cd4dc9206ffb9fe6c24a29c411933a14
parent77d0084bde9c84331036093121f56345c8e765d3
cifs: smbd: Only queue work for error recovery on memory registration

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>
fs/cifs/smbdirect.c