[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZdObgUMqtMIZzIhV@kekkonen.localdomain>
Date: Mon, 19 Feb 2024 18:18:41 +0000
From: Sakari Ailus <sakari.ailus@...ux.intel.com>
To: "Wu, Wentong" <wentong.wu@...el.com>
Cc: Hans de Goede <hdegoede@...hat.com>,
"Winkler, Tomas" <tomas.winkler@...el.com>,
Arnd Bergmann <arnd@...db.de>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 1/3] mei: vsc: Call wake_up() and event handler in a
workqueue
Hi Wentong,
On Sun, Feb 18, 2024 at 01:23:30AM +0000, Wu, Wentong wrote:
> Hi Sakari,
>
> Thanks, and sorry for the late response because I'm in vacation this week.
No worries and thanks for the review.
>
> > From: Sakari Ailus <sakari.ailus@...ux.intel.com>
> >
> > The event handler, in this case that of mei_vsc_event_cb() of platform-vsc.c,
> > is called from a threaded interrupt handler in uninterruptible context.
>
> But why this thread is uninterruptible?
>
> https://github.com/torvalds/linux/blob/master/kernel/irq/manage.c#L1294
>
> https://lwn.net/Articles/302043/
I guess I sent this too hastily. You can indeed sleep there.
Moving wake_up() to the threaded handler should thus be enough. I'll send
v2.
--
Regards,
Sakari Ailus
Powered by blists - more mailing lists