]> git.baikalelectronics.ru Git - kernel.git/commit
xprtrdma: Make sure Send CQ is allocated on an existing compvec
authorNicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
Tue, 5 Feb 2019 17:21:02 +0000 (18:21 +0100)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 12 Feb 2019 20:31:45 +0000 (15:31 -0500)
commit1282709f2d5e81358f4ca425c2e0d2d7195d31be
tree15d8ff9eca68d3bfade875653754e52963e0861e
parent030a96597dbc7f5a282bac2064d17856465a7896
xprtrdma: Make sure Send CQ is allocated on an existing compvec

Make sure the device has at least 2 completion vectors
before allocating to compvec#1

Fixes: 0523c6321681 (xprtrdma: Put Send CQ in IB_POLL_WORKQUEUE mode)
Signed-off-by: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/verbs.c