TO: Bart Van Assche <[email protected]>
CC: Christoph Hellwig <[email protected]>
tree: git://git.infradead.org/users/hch/scsi.git queue-depth-cleanups
head: 00868993ece2e5af973e0f60990f7781f5e03e88
commit: 509c07bc18500c3ded1a8e6273ace5002136c9d2 [78/90] IB/srp: Separate
target and channel variables
:::::: branch date: 2 hours ago
:::::: commit date: 30 hours ago
drivers/infiniband/ulp/srp/ib_srp.c:2129 srp_cm_rep_handler() error: we
previously assumed 'ch->rx_ring' could be null (see line 2108)
git remote add hch-scsi git://git.infradead.org/users/hch/scsi.git
git remote update hch-scsi
git checkout 509c07bc18500c3ded1a8e6273ace5002136c9d2
vim +2129 drivers/infiniband/ulp/srp/ib_srp.c
961e0be8 David Dillow 2011-01-14 2102
shost_printk(KERN_WARNING, target->scsi_host,
961e0be8 David Dillow 2011-01-14 2103 PFX
"Unhandled RSP opcode %#x\n", lrsp->opcode);
961e0be8 David Dillow 2011-01-14 2104 ret = -ECONNRESET;
961e0be8 David Dillow 2011-01-14 2105 goto error;
961e0be8 David Dillow 2011-01-14 2106 }
961e0be8 David Dillow 2011-01-14 2107
509c07bc Bart Van Assche 2014-10-30 @2108 if (!ch->rx_ring) {
509c07bc Bart Van Assche 2014-10-30 2109 ret =
srp_alloc_iu_bufs(ch);
961e0be8 David Dillow 2011-01-14 2110 if (ret)
961e0be8 David Dillow 2011-01-14 2111 goto error;
961e0be8 David Dillow 2011-01-14 2112 }
961e0be8 David Dillow 2011-01-14 2113
961e0be8 David Dillow 2011-01-14 2114 ret = -ENOMEM;
961e0be8 David Dillow 2011-01-14 2115 qp_attr = kmalloc(sizeof
*qp_attr, GFP_KERNEL);
961e0be8 David Dillow 2011-01-14 2116 if (!qp_attr)
961e0be8 David Dillow 2011-01-14 2117 goto error;
961e0be8 David Dillow 2011-01-14 2118
961e0be8 David Dillow 2011-01-14 2119 qp_attr->qp_state = IB_QPS_RTR;
961e0be8 David Dillow 2011-01-14 2120 ret = ib_cm_init_qp_attr(cm_id,
qp_attr, &attr_mask);
961e0be8 David Dillow 2011-01-14 2121 if (ret)
961e0be8 David Dillow 2011-01-14 2122 goto error_free;
961e0be8 David Dillow 2011-01-14 2123
509c07bc Bart Van Assche 2014-10-30 2124 ret = ib_modify_qp(ch->qp,
qp_attr, attr_mask);
961e0be8 David Dillow 2011-01-14 2125 if (ret)
961e0be8 David Dillow 2011-01-14 2126 goto error_free;
961e0be8 David Dillow 2011-01-14 2127
4d73f95f Bart Van Assche 2013-10-26 2128 for (i = 0; i <
target->queue_size; i++) {
509c07bc Bart Van Assche 2014-10-30 @2129 struct srp_iu *iu =
ch->rx_ring[i];
509c07bc Bart Van Assche 2014-10-30 2130
509c07bc Bart Van Assche 2014-10-30 2131 ret = srp_post_recv(ch,
iu);
961e0be8 David Dillow 2011-01-14 2132 if (ret)
---
0-DAY kernel test infrastructure Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
_______________________________________________
kbuild mailing list
[email protected]
https://lists.01.org/mailman/listinfo/kbuild