]> www.infradead.org Git - users/jedix/linux-maple.git/commit
IB/cm: remove unnecessary ib_query_device in PSIF RNR WA
authorWei Lin Guay <wei.lin.guay@oracle.com>
Wed, 7 Dec 2016 08:08:09 +0000 (09:08 +0100)
committerChuck Anderson <chuck.anderson@oracle.com>
Sat, 10 Jun 2017 00:33:25 +0000 (17:33 -0700)
commit89428ab0d127c2a3a8c61d622d6d1a7c7afa124a
treea6f0bdc8cf688c900bfcf0b5efa29090d54b4713
parent5d8379a02c69131df0abeeab3a99eaaa658d5d25
IB/cm: remove unnecessary ib_query_device in PSIF RNR WA

The query device is performed in CM REQ/REP to retrieve the
vendorID of the sif device. This operation is illegal because
it is calling a sleeping function (ib_query_device) from
a non-sleepable context. Thus, this patch removes this illegal
call and reuses the cached vendorID/DeviceID in the pci_dev
data structure.

Orabug: 25892550

Signed-off-by: Wei Lin Guay <wei.lin.guay@oracle.com>
Reviewed-by: Håkon Bugge <haakon.bugge@oracle.com>
Reviewed-by: Francisco Triviño García <francisco.trivino@oracle.com>
Reviewed-by: Gerd Rausch <gerd.rausch@oracle.com>
drivers/infiniband/core/cm.c