rds: Make rds_sock_lock BH rather than IRQ safe.
commitf217c4711d71aa6811b6e71d219b9efafa5d55a6
authorDavid S. Miller <davem@davemloft.net>
Tue, 24 Jan 2012 22:03:44 +0000 (24 17:03 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Feb 2012 17:19:04 +0000 (3 09:19 -0800)
treedff8657b88953fc3b5b930e799bb85290910157e
parentd020b1d3d3379d183d0649cdc2f6de9131268419
rds: Make rds_sock_lock BH rather than IRQ safe.

[ Upstream commit efc3dbc37412c027e363736b4f4c74ee5e8ecffc ]

rds_sock_info() triggers locking warnings because we try to perform a
local_bh_enable() (via sock_i_ino()) while hardware interrupts are
disabled (via taking rds_sock_lock).

There is no reason for rds_sock_lock to be a hardware IRQ disabling
lock, none of these access paths run in hardware interrupt context.

Therefore making it a BH disabling lock is safe and sufficient to
fix this bug.

Reported-by: Kumar Sanghvi <kumaras@chelsio.com>
Reported-by: Josh Boyer <jwboyer@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/rds/af_rds.c