]> git.baikalelectronics.ru Git - kernel.git/commit
IB/qib: Fix context allocation with multiple HCAs
authorMike Marciniszyn <mike.marciniszyn@qlogic.com>
Tue, 11 Jan 2011 01:42:20 +0000 (17:42 -0800)
committerRoland Dreier <rolandd@cisco.com>
Tue, 11 Jan 2011 01:42:20 +0000 (17:42 -0800)
commitfd670f05cac3d8690666bae0c5ecc19e9bd546d6
tree4a9d0ce7dc03a56cae8f2c95da9a55d670933697
parent3be72f39384da6f5c8f0d42d4e52975a832510c7
IB/qib: Fix context allocation with multiple HCAs

The driver was incorrectly choosing HCAs on which to allocate new user
contexts based on overall count of usable ports regardless whether the
usable port was on the currently selected HCA.

Signed-off-by: Mike Marciniszyn <mike.marciniszyn@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/qib/qib_file_ops.c