Re: amd64: softintr_dispatch: remove kernel lock

2021-06-23 Thread Visa Hankala
On Wed, Jun 23, 2021 at 05:39:05PM +0200, Mark Kettenis wrote: > > Date: Wed, 23 Jun 2021 15:32:03 + > > From: Visa Hankala > > > > On Wed, Jun 23, 2021 at 05:15:05PM +0200, Mark Kettenis wrote: > > > > Date: Wed, 23 Jun 2021 14:56:45 + > > > > From: Visa Hankala > > > > > > > > On

Re: amd64: softintr_dispatch: remove kernel lock

2021-06-23 Thread Mark Kettenis
> Date: Wed, 23 Jun 2021 15:32:03 + > From: Visa Hankala > > On Wed, Jun 23, 2021 at 05:15:05PM +0200, Mark Kettenis wrote: > > > Date: Wed, 23 Jun 2021 14:56:45 + > > > From: Visa Hankala > > > > > > On Tue, Jun 22, 2021 at 09:46:22AM -0500, Scott Cheloha wrote: > > > > On Mon, Jun

Re: amd64: softintr_dispatch: remove kernel lock

2021-06-23 Thread Visa Hankala
On Wed, Jun 23, 2021 at 05:15:05PM +0200, Mark Kettenis wrote: > > Date: Wed, 23 Jun 2021 14:56:45 + > > From: Visa Hankala > > > > On Tue, Jun 22, 2021 at 09:46:22AM -0500, Scott Cheloha wrote: > > > On Mon, Jun 21, 2021 at 02:04:30PM +, Visa Hankala wrote: > > > > On Thu, May 27, 2021

Re: amd64: softintr_dispatch: remove kernel lock

2021-06-23 Thread Mark Kettenis
> Date: Wed, 23 Jun 2021 14:56:45 + > From: Visa Hankala > > On Tue, Jun 22, 2021 at 09:46:22AM -0500, Scott Cheloha wrote: > > On Mon, Jun 21, 2021 at 02:04:30PM +, Visa Hankala wrote: > > > On Thu, May 27, 2021 at 07:40:26PM -0500, Scott Cheloha wrote: > > > > On Sun, May 23, 2021 at

Re: amd64: softintr_dispatch: remove kernel lock

2021-06-23 Thread Visa Hankala
On Tue, Jun 22, 2021 at 09:46:22AM -0500, Scott Cheloha wrote: > On Mon, Jun 21, 2021 at 02:04:30PM +, Visa Hankala wrote: > > On Thu, May 27, 2021 at 07:40:26PM -0500, Scott Cheloha wrote: > > > On Sun, May 23, 2021 at 09:05:24AM +, Visa Hankala wrote: > > > > When a CPU starts processing

Re: amd64: softintr_dispatch: remove kernel lock

2021-06-22 Thread Scott Cheloha
On Mon, Jun 21, 2021 at 02:04:30PM +, Visa Hankala wrote: > On Thu, May 27, 2021 at 07:40:26PM -0500, Scott Cheloha wrote: > > On Sun, May 23, 2021 at 09:05:24AM +, Visa Hankala wrote: > > > When a CPU starts processing a soft interrupt, it reserves the handler > > > to prevent concurrent

Re: amd64: softintr_dispatch: remove kernel lock

2021-06-21 Thread Visa Hankala
On Thu, May 27, 2021 at 07:40:26PM -0500, Scott Cheloha wrote: > On Sun, May 23, 2021 at 09:05:24AM +, Visa Hankala wrote: > > When a CPU starts processing a soft interrupt, it reserves the handler > > to prevent concurrent execution. If the soft interrupt gets rescheduled > > during

Re: amd64: softintr_dispatch: remove kernel lock

2021-05-27 Thread Scott Cheloha
On Sun, May 23, 2021 at 09:05:24AM +, Visa Hankala wrote: > > [...] > > Here is a revised patch with a slightly altered approach. > > I have replaced the per-CPU queues with system-wide queues to make > the code simpler. I think that's fine to start with. We don't have many softintrs. We

Re: amd64: softintr_dispatch: remove kernel lock

2021-05-23 Thread Visa Hankala
On Sat, May 22, 2021 at 02:23:57PM +, Visa Hankala wrote: > On Sat, May 22, 2021 at 02:33:47PM +0200, Mark Kettenis wrote: > > > Date: Sat, 22 May 2021 11:11:38 + > > > From: Visa Hankala > > > > > > On Wed, May 19, 2021 at 05:11:09PM -0500, Scott Cheloha wrote: > > > > Hi, > > > > > >

Re: amd64: softintr_dispatch: remove kernel lock

2021-05-22 Thread Visa Hankala
On Sat, May 22, 2021 at 02:33:47PM +0200, Mark Kettenis wrote: > > Date: Sat, 22 May 2021 11:11:38 + > > From: Visa Hankala > > > > On Wed, May 19, 2021 at 05:11:09PM -0500, Scott Cheloha wrote: > > > Hi, > > > > > > visa@ says I need to unlock softintr_dispatch() before I can > > > unlock

Re: amd64: softintr_dispatch: remove kernel lock

2021-05-22 Thread Patrick Wildt
Am Sat, May 22, 2021 at 02:33:47PM +0200 schrieb Mark Kettenis: > > Date: Sat, 22 May 2021 11:11:38 + > > From: Visa Hankala > > > > On Wed, May 19, 2021 at 05:11:09PM -0500, Scott Cheloha wrote: > > > Hi, > > > > > > visa@ says I need to unlock softintr_dispatch() before I can > > > unlock

Re: amd64: softintr_dispatch: remove kernel lock

2021-05-22 Thread Mark Kettenis
> Date: Sat, 22 May 2021 11:11:38 + > From: Visa Hankala > > On Wed, May 19, 2021 at 05:11:09PM -0500, Scott Cheloha wrote: > > Hi, > > > > visa@ says I need to unlock softintr_dispatch() before I can > > unlock softclock(), so let's do that. > > > > Additionally, when we call

Re: amd64: softintr_dispatch: remove kernel lock

2021-05-22 Thread Visa Hankala
On Wed, May 19, 2021 at 05:11:09PM -0500, Scott Cheloha wrote: > Hi, > > visa@ says I need to unlock softintr_dispatch() before I can > unlock softclock(), so let's do that. > > Additionally, when we call softintr_disestablish() we want to wait for > the underlying softintr handle to finish