diff options
author | Dan Carpenter <error27@gmail.com> | 2010-09-18 15:44:14 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-19 20:59:44 +0200 |
commit | aef3ea33e85035f7c827c1db9155f97f4b7ee725 (patch) | |
tree | cf87224000ffb8e37814e44cb0c166c36f8c49e0 /net/rds/iw_rdma.c | |
parent | rds: double unlock in rds_ib_cm_handle_connect() (diff) | |
download | linux-aef3ea33e85035f7c827c1db9155f97f4b7ee725.tar.xz linux-aef3ea33e85035f7c827c1db9155f97f4b7ee725.zip |
rds: spin_lock_irq() is not nestable
This is basically just a cleanup. IRQs were disabled on the previous
line so we don't need to do it again here. In the current code IRQs
would get turned on one line earlier than intended.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds/iw_rdma.c')
-rw-r--r-- | net/rds/iw_rdma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/rds/iw_rdma.c b/net/rds/iw_rdma.c index 4e152e2daa3d..0e7accc23ee2 100644 --- a/net/rds/iw_rdma.c +++ b/net/rds/iw_rdma.c @@ -206,9 +206,9 @@ void rds_iw_add_conn(struct rds_iw_device *rds_iwdev, struct rds_connection *con BUG_ON(list_empty(&ic->iw_node)); list_del(&ic->iw_node); - spin_lock_irq(&rds_iwdev->spinlock); + spin_lock(&rds_iwdev->spinlock); list_add_tail(&ic->iw_node, &rds_iwdev->conn_list); - spin_unlock_irq(&rds_iwdev->spinlock); + spin_unlock(&rds_iwdev->spinlock); spin_unlock_irq(&iw_nodev_conns_lock); ic->rds_iwdev = rds_iwdev; |