]> git.baikalelectronics.ru Git - kernel.git/commit
IPoIB: Fix hang in napi_disable() if P_Key is never found
authorRoland Dreier <rolandd@cisco.com>
Wed, 14 Jan 2009 22:55:41 +0000 (14:55 -0800)
committerRoland Dreier <rolandd@cisco.com>
Wed, 14 Jan 2009 22:55:41 +0000 (14:55 -0800)
commit40d59f30b221c0d337497bf7f375aa203b48946f
treeb3bf96fe0646bd30684391f1f9565347566cdd0c
parent66f6f83781ba4ae26495fc7f4d813b5142ec0cdf
IPoIB: Fix hang in napi_disable() if P_Key is never found

After commit 584367f7 ("IPoIB: Don't enable NAPI when it's already
enabled"), if an interface is brought up but the corresponding P_Key
never appears, then ipoib_stop() will hang in napi_disable(), because
ipoib_open() returns before it does napi_enable().

Fix this by changing ipoib_open() to call napi_enable() even if the
P_Key isn't present.

Reported-by: Yossi Etigin <yosefe@Voltaire.COM>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/ipoib/ipoib_main.c