diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-07 20:08:02 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-07 20:08:02 -0400 |
commit | 3cc08fc35db75b059118626c30b60b0f56583802 (patch) | |
tree | 704d71199c8be8d5b822ca424675291e8cec7bde /drivers/infiniband/core | |
parent | faa38b5e0e092914764cdba9f83d31a3f794d182 (diff) | |
parent | 03b37ecdb3975f09832747600853d3818a50eda3 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband: (42 commits)
IB/qib: Add missing <linux/slab.h> include
IB/ehca: Drop unnecessary NULL test
RDMA/nes: Fix confusing if statement indentation
IB/ehca: Init irq tasklet before irq can happen
RDMA/nes: Fix misindented code
RDMA/nes: Fix showing wqm_quanta
RDMA/nes: Get rid of "set but not used" variables
RDMA/nes: Read firmware version from correct place
IB/srp: Export req_lim via sysfs
IB/srp: Make receive buffer handling more robust
IB/srp: Use print_hex_dump()
IB: Rename RAW_ETY to RAW_ETHERTYPE
RDMA/nes: Fix two sparse warnings
RDMA/cxgb3: Make needlessly global iwch_l2t_send() static
IB/iser: Make needlessly global iser_alloc_rx_descriptors() static
RDMA/cxgb4: Add timeouts when waiting for FW responses
IB/qib: Fix race between qib_error_qp() and receive packet processing
IB/qib: Limit the number of packets processed per interrupt
IB/qib: Allow writes to the diag_counters to be able to clear them
IB/qib: Set cfgctxts to number of CPUs by default
...
Diffstat (limited to 'drivers/infiniband/core')
-rw-r--r-- | drivers/infiniband/core/cm.c | 10 | ||||
-rw-r--r-- | drivers/infiniband/core/user_mad.c | 2 | ||||
-rw-r--r-- | drivers/infiniband/core/verbs.c | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/drivers/infiniband/core/cm.c b/drivers/infiniband/core/cm.c index ad63b79afac1..64e0903091a8 100644 --- a/drivers/infiniband/core/cm.c +++ b/drivers/infiniband/core/cm.c | |||
@@ -2409,10 +2409,12 @@ int ib_send_cm_mra(struct ib_cm_id *cm_id, | |||
2409 | msg_response = CM_MSG_RESPONSE_REP; | 2409 | msg_response = CM_MSG_RESPONSE_REP; |
2410 | break; | 2410 | break; |
2411 | case IB_CM_ESTABLISHED: | 2411 | case IB_CM_ESTABLISHED: |
2412 | cm_state = cm_id->state; | 2412 | if (cm_id->lap_state == IB_CM_LAP_RCVD) { |
2413 | lap_state = IB_CM_MRA_LAP_SENT; | 2413 | cm_state = cm_id->state; |
2414 | msg_response = CM_MSG_RESPONSE_OTHER; | 2414 | lap_state = IB_CM_MRA_LAP_SENT; |
2415 | break; | 2415 | msg_response = CM_MSG_RESPONSE_OTHER; |
2416 | break; | ||
2417 | } | ||
2416 | default: | 2418 | default: |
2417 | ret = -EINVAL; | 2419 | ret = -EINVAL; |
2418 | goto error1; | 2420 | goto error1; |
diff --git a/drivers/infiniband/core/user_mad.c b/drivers/infiniband/core/user_mad.c index 6babb72b39fc..5fa856909511 100644 --- a/drivers/infiniband/core/user_mad.c +++ b/drivers/infiniband/core/user_mad.c | |||
@@ -1085,7 +1085,6 @@ err_cdev: | |||
1085 | static void ib_umad_kill_port(struct ib_umad_port *port) | 1085 | static void ib_umad_kill_port(struct ib_umad_port *port) |
1086 | { | 1086 | { |
1087 | struct ib_umad_file *file; | 1087 | struct ib_umad_file *file; |
1088 | int already_dead; | ||
1089 | int id; | 1088 | int id; |
1090 | 1089 | ||
1091 | dev_set_drvdata(port->dev, NULL); | 1090 | dev_set_drvdata(port->dev, NULL); |
@@ -1103,7 +1102,6 @@ static void ib_umad_kill_port(struct ib_umad_port *port) | |||
1103 | 1102 | ||
1104 | list_for_each_entry(file, &port->file_list, port_list) { | 1103 | list_for_each_entry(file, &port->file_list, port_list) { |
1105 | mutex_lock(&file->mutex); | 1104 | mutex_lock(&file->mutex); |
1106 | already_dead = file->agents_dead; | ||
1107 | file->agents_dead = 1; | 1105 | file->agents_dead = 1; |
1108 | mutex_unlock(&file->mutex); | 1106 | mutex_unlock(&file->mutex); |
1109 | 1107 | ||
diff --git a/drivers/infiniband/core/verbs.c b/drivers/infiniband/core/verbs.c index a7da9be43e61..e0fa22238715 100644 --- a/drivers/infiniband/core/verbs.c +++ b/drivers/infiniband/core/verbs.c | |||
@@ -310,8 +310,8 @@ EXPORT_SYMBOL(ib_create_qp); | |||
310 | 310 | ||
311 | static const struct { | 311 | static const struct { |
312 | int valid; | 312 | int valid; |
313 | enum ib_qp_attr_mask req_param[IB_QPT_RAW_ETY + 1]; | 313 | enum ib_qp_attr_mask req_param[IB_QPT_RAW_ETHERTYPE + 1]; |
314 | enum ib_qp_attr_mask opt_param[IB_QPT_RAW_ETY + 1]; | 314 | enum ib_qp_attr_mask opt_param[IB_QPT_RAW_ETHERTYPE + 1]; |
315 | } qp_state_table[IB_QPS_ERR + 1][IB_QPS_ERR + 1] = { | 315 | } qp_state_table[IB_QPS_ERR + 1][IB_QPS_ERR + 1] = { |
316 | [IB_QPS_RESET] = { | 316 | [IB_QPS_RESET] = { |
317 | [IB_QPS_RESET] = { .valid = 1 }, | 317 | [IB_QPS_RESET] = { .valid = 1 }, |