Re: [PATCH 5/7] ibmvnic: use a lock to serialize remove/reset

2021-01-11 Thread Sukadev Bhattiprolu
Jakub Kicinski [k...@kernel.org] wrote: > On Sun, 10 Jan 2021 19:52:25 -0800 Sukadev Bhattiprolu wrote: > > Jakub Kicinski [k...@kernel.org] wrote: > > > On Thu, 7 Jan 2021 23:12:34 -0800 Sukadev Bhattiprolu wrote: > > > > Use a separate lock to serialze ibmvnic_reset() and ibmvnic_remove() > >

Re: [PATCH 5/7] ibmvnic: use a lock to serialize remove/reset

2021-01-11 Thread Jakub Kicinski
On Sun, 10 Jan 2021 19:52:25 -0800 Sukadev Bhattiprolu wrote: > Jakub Kicinski [k...@kernel.org] wrote: > > On Thu, 7 Jan 2021 23:12:34 -0800 Sukadev Bhattiprolu wrote: > > > Use a separate lock to serialze ibmvnic_reset() and ibmvnic_remove() > > > functions. ibmvnic_reset() schedules work for

Re: [PATCH 5/7] ibmvnic: use a lock to serialize remove/reset

2021-01-10 Thread Sukadev Bhattiprolu
Jakub Kicinski [k...@kernel.org] wrote: > On Thu, 7 Jan 2021 23:12:34 -0800 Sukadev Bhattiprolu wrote: > > Use a separate lock to serialze ibmvnic_reset() and ibmvnic_remove() > > functions. ibmvnic_reset() schedules work for the worker thread and > > ibmvnic_remove() flushes the work before remov

Re: [PATCH 5/7] ibmvnic: use a lock to serialize remove/reset

2021-01-09 Thread Jakub Kicinski
On Thu, 7 Jan 2021 23:12:34 -0800 Sukadev Bhattiprolu wrote: > Use a separate lock to serialze ibmvnic_reset() and ibmvnic_remove() > functions. ibmvnic_reset() schedules work for the worker thread and > ibmvnic_remove() flushes the work before removing the adapter. We > don't want any work to be

[PATCH 5/7] ibmvnic: use a lock to serialize remove/reset

2021-01-07 Thread Sukadev Bhattiprolu
Use a separate lock to serialze ibmvnic_reset() and ibmvnic_remove() functions. ibmvnic_reset() schedules work for the worker thread and ibmvnic_remove() flushes the work before removing the adapter. We don't want any work to be scheduled once we start removing the adapter (i.e after we have alread