aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorIlpo Järvinen <ilpo.jarvinen@helsinki.fi>2008-10-30 07:39:43 -0400
committerRoland Dreier <rolandd@cisco.com>2008-11-03 00:33:52 -0500
commit5880ff19fa29466cb9d7e293710e6aebecfecdd1 (patch)
tree6e771fbaf57dc6fb5b7e37fb4898bb3f1598dc44 /drivers/infiniband
parent332edc2f7fa58b818dfed1cede60272eecc27c0a (diff)
RDMA/nes: Reindent mis-indented spinlocks
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/hw/nes/nes_verbs.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/infiniband/hw/nes/nes_verbs.c b/drivers/infiniband/hw/nes/nes_verbs.c
index 932e56fcf774..ffdd141efe3e 100644
--- a/drivers/infiniband/hw/nes/nes_verbs.c
+++ b/drivers/infiniband/hw/nes/nes_verbs.c
@@ -220,14 +220,14 @@ static int nes_bind_mw(struct ib_qp *ibqp, struct ib_mw *ibmw,
220 if (nesqp->ibqp_state > IB_QPS_RTS) 220 if (nesqp->ibqp_state > IB_QPS_RTS)
221 return -EINVAL; 221 return -EINVAL;
222 222
223 spin_lock_irqsave(&nesqp->lock, flags); 223 spin_lock_irqsave(&nesqp->lock, flags);
224 224
225 head = nesqp->hwqp.sq_head; 225 head = nesqp->hwqp.sq_head;
226 qsize = nesqp->hwqp.sq_tail; 226 qsize = nesqp->hwqp.sq_tail;
227 227
228 /* Check for SQ overflow */ 228 /* Check for SQ overflow */
229 if (((head + (2 * qsize) - nesqp->hwqp.sq_tail) % qsize) == (qsize - 1)) { 229 if (((head + (2 * qsize) - nesqp->hwqp.sq_tail) % qsize) == (qsize - 1)) {
230 spin_unlock_irqrestore(&nesqp->lock, flags); 230 spin_unlock_irqrestore(&nesqp->lock, flags);
231 return -EINVAL; 231 return -EINVAL;
232 } 232 }
233 233
@@ -269,7 +269,7 @@ static int nes_bind_mw(struct ib_qp *ibqp, struct ib_mw *ibmw,
269 nes_write32(nesdev->regs+NES_WQE_ALLOC, 269 nes_write32(nesdev->regs+NES_WQE_ALLOC,
270 (1 << 24) | 0x00800000 | nesqp->hwqp.qp_id); 270 (1 << 24) | 0x00800000 | nesqp->hwqp.qp_id);
271 271
272 spin_unlock_irqrestore(&nesqp->lock, flags); 272 spin_unlock_irqrestore(&nesqp->lock, flags);
273 273
274 return 0; 274 return 0;
275} 275}
@@ -3212,7 +3212,7 @@ static int nes_post_send(struct ib_qp *ibqp, struct ib_send_wr *ib_wr,
3212 if (nesqp->ibqp_state > IB_QPS_RTS) 3212 if (nesqp->ibqp_state > IB_QPS_RTS)
3213 return -EINVAL; 3213 return -EINVAL;
3214 3214
3215 spin_lock_irqsave(&nesqp->lock, flags); 3215 spin_lock_irqsave(&nesqp->lock, flags);
3216 3216
3217 head = nesqp->hwqp.sq_head; 3217 head = nesqp->hwqp.sq_head;
3218 3218
@@ -3337,7 +3337,7 @@ static int nes_post_send(struct ib_qp *ibqp, struct ib_send_wr *ib_wr,
3337 (counter << 24) | 0x00800000 | nesqp->hwqp.qp_id); 3337 (counter << 24) | 0x00800000 | nesqp->hwqp.qp_id);
3338 } 3338 }
3339 3339
3340 spin_unlock_irqrestore(&nesqp->lock, flags); 3340 spin_unlock_irqrestore(&nesqp->lock, flags);
3341 3341
3342 if (err) 3342 if (err)
3343 *bad_wr = ib_wr; 3343 *bad_wr = ib_wr;
@@ -3368,7 +3368,7 @@ static int nes_post_recv(struct ib_qp *ibqp, struct ib_recv_wr *ib_wr,
3368 if (nesqp->ibqp_state > IB_QPS_RTS) 3368 if (nesqp->ibqp_state > IB_QPS_RTS)
3369 return -EINVAL; 3369 return -EINVAL;
3370 3370
3371 spin_lock_irqsave(&nesqp->lock, flags); 3371 spin_lock_irqsave(&nesqp->lock, flags);
3372 3372
3373 head = nesqp->hwqp.rq_head; 3373 head = nesqp->hwqp.rq_head;
3374 3374
@@ -3421,7 +3421,7 @@ static int nes_post_recv(struct ib_qp *ibqp, struct ib_recv_wr *ib_wr,
3421 nes_write32(nesdev->regs+NES_WQE_ALLOC, (counter<<24) | nesqp->hwqp.qp_id); 3421 nes_write32(nesdev->regs+NES_WQE_ALLOC, (counter<<24) | nesqp->hwqp.qp_id);
3422 } 3422 }
3423 3423
3424 spin_unlock_irqrestore(&nesqp->lock, flags); 3424 spin_unlock_irqrestore(&nesqp->lock, flags);
3425 3425
3426 if (err) 3426 if (err)
3427 *bad_wr = ib_wr; 3427 *bad_wr = ib_wr;
@@ -3453,7 +3453,7 @@ static int nes_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *entry)
3453 3453
3454 nes_debug(NES_DBG_CQ, "\n"); 3454 nes_debug(NES_DBG_CQ, "\n");
3455 3455
3456 spin_lock_irqsave(&nescq->lock, flags); 3456 spin_lock_irqsave(&nescq->lock, flags);
3457 3457
3458 head = nescq->hw_cq.cq_head; 3458 head = nescq->hw_cq.cq_head;
3459 cq_size = nescq->hw_cq.cq_size; 3459 cq_size = nescq->hw_cq.cq_size;
@@ -3562,7 +3562,7 @@ static int nes_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *entry)
3562 nes_debug(NES_DBG_CQ, "Reporting %u completions for CQ%u.\n", 3562 nes_debug(NES_DBG_CQ, "Reporting %u completions for CQ%u.\n",
3563 cqe_count, nescq->hw_cq.cq_number); 3563 cqe_count, nescq->hw_cq.cq_number);
3564 3564
3565 spin_unlock_irqrestore(&nescq->lock, flags); 3565 spin_unlock_irqrestore(&nescq->lock, flags);
3566 3566
3567 return cqe_count; 3567 return cqe_count;
3568} 3568}