]> git.itanic.dy.fi Git - linux-stable/commit
SUNRPC: use _bh spinlocking on ->transport_lock
authorNeilBrown <neilb@suse.de>
Sun, 11 Sep 2022 23:00:52 +0000 (09:00 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Sep 2022 10:23:53 +0000 (12:23 +0200)
commit1ee4c04800a83435f15774bf084900cb518ae0c9
tree878c3f9df77a4e50a9e4ecf3ff7997f1e28d207c
parent4d497f7727b85d397f9366803618dc82e435c211
SUNRPC: use _bh spinlocking on ->transport_lock

Prior to Linux 5.3, ->transport_lock in sunrpc required the _bh style
spinlocks (when not called from a bottom-half handler).

When upstream 3848e96edf4788f772d83990022fa7023a233d83 was backported to
stable kernels, the spin_lock/unlock calls should have been changed to
the _bh version, but this wasn't noted in the patch and didn't happen.

So convert these lock/unlock calls to the _bh versions.

This patch is required for any stable kernel prior to 5.3 to which the
above mentioned patch was backported.  Namely 4.9.y, 4.14.y, 4.19.y.

Signed-off-by: NeilBrown <neilb@suse.de>
Reported-by: Eugeniu Rosca <erosca@de.adit-jv.com>
Reviewed-by: Eugeniu Rosca <erosca@de.adit-jv.com>
Tested-by: Eugeniu Rosca <erosca@de.adit-jv.com>
net/sunrpc/xprt.c