Skip to content

Commit fdcdc94

Browse files
sukadevgregkh
authored andcommitted
ibmvnic: don't spin in tasklet
[ Upstream commit 48079e7 ] ibmvnic_tasklet() continuously spins waiting for responses to all capability requests. It does this to avoid encountering an error during initialization of the vnic. However if there is a bug in the VIOS and we do not receive a response to one or more queries the tasklet ends up spinning continuously leading to hard lock ups. If we fail to receive a message from the VIOS it is reasonable to timeout the login attempt rather than spin indefinitely in the tasklet. Fixes: 249168a ("ibmvnic: Make CRQ interrupt tasklet wait for all capabilities crqs") Signed-off-by: Sukadev Bhattiprolu <[email protected]> Reviewed-by: Dany Madden <[email protected]> Signed-off-by: David S. Miller <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent d443516 commit fdcdc94

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/net/ethernet/ibm/ibmvnic.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5317,12 +5317,6 @@ static void ibmvnic_tasklet(struct tasklet_struct *t)
53175317
ibmvnic_handle_crq(crq, adapter);
53185318
crq->generic.first = 0;
53195319
}
5320-
5321-
/* remain in tasklet until all
5322-
* capabilities responses are received
5323-
*/
5324-
if (!adapter->wait_capability)
5325-
done = true;
53265320
}
53275321
/* if capabilities CRQ's were sent in this tasklet, the following
53285322
* tasklet must wait until all responses are received

0 commit comments

Comments
 (0)