RDS: Fix m_rs_lock deadlock
authorAndy Grover <andy.grover@oracle.com>
Wed, 1 Apr 2009 08:20:18 +0000 (08:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Apr 2009 07:52:21 +0000 (00:52 -0700)
commitf1cffcbfcc53b825da7d1d26244aabd8dccb24aa
treed71e3c271b29eecfc685b96ab0cf15404bd84ba5
parentf1782852adb57c8daf76a56146424f6c2f7410b6
RDS: Fix m_rs_lock deadlock

rs_send_drop_to() is called during socket close. If it takes
m_rs_lock without disabling interrupts, then
rds_send_remove_from_sock() can run from the rx completion
handler and thus deadlock.

Signed-off-by: Andy Grover <andy.grover@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/send.c