[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220225062358.1435652-1-sukadev@linux.ibm.com>
Date: Thu, 24 Feb 2022 22:23:50 -0800
From: Sukadev Bhattiprolu <sukadev@...ux.ibm.com>
To: netdev@...r.kernel.org
Cc: Brian King <brking@...ux.ibm.com>, Dany Madden <drt@...ux.ibm.com>,
Rick Lindsley <ricklind@...ux.ibm.com>
Subject: [PATCH net 0/8] 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).
Sukadev Bhattiprolu (8):
ibmvnic: free reset-work-item when flushing
ibmvnic: initialize rc before completing wait
ibmvnic: define flush_reset_queue helper
ibmvnic: complete init_done on transport events
ibmvnic: register netdev after init of adapter
ibmvnic: init init_done_rc earlier
ibmvnic: clear fop when retrying probe
ibmvnic: Allow queueing resets during probe
drivers/net/ethernet/ibm/ibmvnic.c | 183 ++++++++++++++++++++++++-----
drivers/net/ethernet/ibm/ibmvnic.h | 1 +
2 files changed, 156 insertions(+), 28 deletions(-)
--
2.27.0
Powered by blists - more mailing lists