]> 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)
commitfc5eaa3ea7b4bda277f471f1ec04b5affcaa08c8
tree15d8ff9eca68d3bfade875653754e52963e0861e
parentd7ff1d3ac1b7930d049d3f34be17eeba264328fe
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: 4675fd79e48b (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