Re: [PATCH 1/1] ibmvnic: fix a race between open and reset

2021-02-10 Thread Lijun Pan
On Wed, Feb 10, 2021 at 7:44 PM Sukadev Bhattiprolu wrote: > > __ibmvnic_reset() currently reads the adapter->state before getting the > rtnl and saves that state as the "target state" for the reset. If this > read occurs when adapter is in PROBED state, the target state would be > PROBED. > > Jus

[PATCH 1/1] ibmvnic: fix a race between open and reset

2021-02-10 Thread Sukadev Bhattiprolu
__ibmvnic_reset() currently reads the adapter->state before getting the rtnl and saves that state as the "target state" for the reset. If this read occurs when adapter is in PROBED state, the target state would be PROBED. Just after the target state is saved, and before the actual reset process is