]> git.baikalelectronics.ru Git - kernel.git/commit
RDS: Fix locking in rds_send_drop_to()
authorTina Yang <tina.yang@oracle.com>
Thu, 11 Mar 2010 13:50:03 +0000 (13:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Mar 2010 04:16:58 +0000 (21:16 -0700)
commitad00fd510a7513fbc261c045a6f274a672391b1c
tree545fe5bccea8aa087233ccecd1dc18570d634d7e
parentf0a3de4426deb1209224eaaf5b97abce321a2f86
RDS: Fix locking in rds_send_drop_to()

It seems rds_send_drop_to() called
__rds_rdma_send_complete(rs, rm, RDS_RDMA_CANCELED)
with only rds_sock lock, but not rds_message lock. It raced with
other threads that is attempting to modify the rds_message as well,
such as from within rds_rdma_send_complete().

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