]> 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:17:06 +0000 (12:17 +0200)
commitbcab4d551a3d15bdf8efaac7b61420219bd154b6
treed4c4bfa3f7a631d766b2151e2d2c82bcd9fbb102
parent14bf8fe67a6643b7610e0a88cfb1442cad073b89
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