Commit 5a83dd14 authored by David S. Miller's avatar David S. Miller

Merge branch 'ibmvnic-fixes'

Sukadev Bhattiprolu says:

====================
ibmvnic: Fix a race in ibmvnic_probe()

If we get a transport (reset) event right after a successful CRQ_INIT
during ibmvnic_probe() but before we set the adapter state to VNIC_PROBED,
we will throw away the reset assuming that the adapter is still in the
probing state. But since the adapter has completed the CRQ_INIT any
subsequent CRQs the we send will be ignored by the vnicserver until
we release/init the CRQ again. This can leave the adapter unconfigured.

While here fix a couple of other bugs that were observed (Patches 1,2,4).
====================
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parents 31372fe9 fd98693c
This diff is collapsed.
...@@ -930,6 +930,7 @@ struct ibmvnic_adapter { ...@@ -930,6 +930,7 @@ struct ibmvnic_adapter {
struct ibmvnic_tx_pool *tx_pool; struct ibmvnic_tx_pool *tx_pool;
struct ibmvnic_tx_pool *tso_pool; struct ibmvnic_tx_pool *tso_pool;
struct completion probe_done;
struct completion init_done; struct completion init_done;
int init_done_rc; int init_done_rc;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment