OSDN Git Service

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)
commita4cb5bdb754afe21f3e9e7164213e8600cf69427
tree15d8ff9eca68d3bfade875653754e52963e0861e
parent8fc75bed96bb94e23ca51bd9be4daf65c57697bf
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: a4699f5647f3 (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