mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 19:21:26 +00:00
ib_srpt: Specify a valid completion vector during completion queue creation
Avoid that SRP login can fail as follows: kernel: ib_srpt: failed to create CQ: cqe 320; c.v. 17; ret -22 git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6179 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -4218,8 +4218,11 @@ static void srpt_add_one(struct ib_device *device)
|
||||
INIT_LIST_HEAD(&sport->nexus_list);
|
||||
init_waitqueue_head(&sport->ch_releaseQ);
|
||||
mutex_init(&sport->mutex);
|
||||
for (j = 0; j < COMP_V_MASK_SIZE; j++)
|
||||
for (j = 0; j < sdev->device->num_comp_vectors; j++) {
|
||||
if (WARN_ON_ONCE(j >= COMP_V_MASK_SIZE))
|
||||
break;
|
||||
__set_bit(j, sport->comp_v_mask);
|
||||
}
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20) && !defined(BACKPORT_LINUX_WORKQUEUE_TO_2_6_19)
|
||||
/*
|
||||
* A vanilla 2.6.19 or older kernel without backported OFED
|
||||
|
||||
Reference in New Issue
Block a user