qlcnic: fix inconsistent lock state
Spin_lock(rds_ring->lock) is not required while posting buffers from qlcnic_open and freeing buffers from qlcnic_down. Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
84418e3b10
commit
f1bf7a5247
1 changed files with 0 additions and 7 deletions
|
@ -136,8 +136,6 @@ void qlcnic_reset_rx_buffers_list(struct qlcnic_adapter *adapter)
|
||||||
for (ring = 0; ring < adapter->max_rds_rings; ring++) {
|
for (ring = 0; ring < adapter->max_rds_rings; ring++) {
|
||||||
rds_ring = &recv_ctx->rds_rings[ring];
|
rds_ring = &recv_ctx->rds_rings[ring];
|
||||||
|
|
||||||
spin_lock(&rds_ring->lock);
|
|
||||||
|
|
||||||
INIT_LIST_HEAD(&rds_ring->free_list);
|
INIT_LIST_HEAD(&rds_ring->free_list);
|
||||||
|
|
||||||
rx_buf = rds_ring->rx_buf_arr;
|
rx_buf = rds_ring->rx_buf_arr;
|
||||||
|
@ -146,8 +144,6 @@ void qlcnic_reset_rx_buffers_list(struct qlcnic_adapter *adapter)
|
||||||
&rds_ring->free_list);
|
&rds_ring->free_list);
|
||||||
rx_buf++;
|
rx_buf++;
|
||||||
}
|
}
|
||||||
|
|
||||||
spin_unlock(&rds_ring->lock);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1587,8 +1583,6 @@ qlcnic_post_rx_buffers(struct qlcnic_adapter *adapter, u32 ringid,
|
||||||
int producer, count = 0;
|
int producer, count = 0;
|
||||||
struct list_head *head;
|
struct list_head *head;
|
||||||
|
|
||||||
spin_lock(&rds_ring->lock);
|
|
||||||
|
|
||||||
producer = rds_ring->producer;
|
producer = rds_ring->producer;
|
||||||
|
|
||||||
head = &rds_ring->free_list;
|
head = &rds_ring->free_list;
|
||||||
|
@ -1618,7 +1612,6 @@ qlcnic_post_rx_buffers(struct qlcnic_adapter *adapter, u32 ringid,
|
||||||
writel((producer-1) & (rds_ring->num_desc-1),
|
writel((producer-1) & (rds_ring->num_desc-1),
|
||||||
rds_ring->crb_rcv_producer);
|
rds_ring->crb_rcv_producer);
|
||||||
}
|
}
|
||||||
spin_unlock(&rds_ring->lock);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Add table
Reference in a new issue