From: Samuel Thibault <samuel.thibault-vYW+cPY1g1pg9hUCZPvPmw@public.gmane.org>
To: Johannes Berg <johannes-cdvu00un1VgdHxzADdlk8Q@public.gmane.org>,
Hugh Dickins <hughd-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>,
akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org,
Sabrina Dubroca <sd-y1jBWg8GRStKuXlAQpz2QA@public.gmane.org>,
Valdis.Kletnieks-PjAqaU27lzQ@public.gmane.org,
Vincent Donnefort
<vdonnefort-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
Bryan Wu <cooloney-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
linux-leds-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-wireless-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCHv2][input-led] Defer input led work to workqueue
Date: Tue, 26 Aug 2014 15:32:38 +0200 [thread overview]
Message-ID: <20140826133238.GA28108@type.bordeaux.inria.fr> (raw)
In-Reply-To: <20140826132410.GD3186-hVaJJPvgRkSHR6PIDP45TBlftxrVp6Uy@public.gmane.org>
Samuel Thibault, le Tue 26 Aug 2014 15:24:10 +0200, a écrit :
> Johannes Berg, le Tue 26 Aug 2014 15:22:07 +0200, a écrit :
> > On Tue, 2014-08-26 at 11:17 +0200, Samuel Thibault wrote:
> >
> > > - led_trigger_event(&vt_led_triggers[led], !!brightness);
> > > + vt_led_state[led] = !!brightness;
> > > + schedule_work(&vt_led_work[led]);
> >
> >
> > > +static int __init input_led_init(void)
> > > +{
> > > + unsigned i;
> > > +
> > > + for (i = 0; i < LED_CNT; i++)
> > > + INIT_WORK(&vt_led_work[i], vt_led_cb);
> > > +
> > > + return 0;
> > > +}
> > > +
> > > +static void __exit input_led_exit(void)
> > > +{
> > > +}
> >
> > Come to think of it - don't you need to cancel_work_sync() in exit so
> > the work struct can't be queued while the module is being unloaded?
>
> Well, this is never built as a module ATM, so it's not a problem.
(but I have changed that for future versions of the whole patch, yes)
Samuel
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2014-08-26 13:32 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-26 1:54 [PATCH][input-led] Defer input led work to workqueue Samuel Thibault
2014-08-26 8:01 ` Johannes Berg
2014-08-26 9:13 ` Samuel Thibault
[not found] ` <1409040095.2489.3.camel-8Nb76shvtaUJvtFkdXX2HixXY32XiHfO@public.gmane.org>
2014-08-26 18:51 ` Valdis.Kletnieks-PjAqaU27lzQ
2014-08-26 9:17 ` [PATCHv2][input-led] " Samuel Thibault
2014-08-26 13:22 ` Johannes Berg
2014-08-26 13:24 ` Samuel Thibault
[not found] ` <20140826132410.GD3186-hVaJJPvgRkSHR6PIDP45TBlftxrVp6Uy@public.gmane.org>
2014-08-26 13:32 ` Samuel Thibault [this message]
[not found] ` <20140826091725.GA23293-ImhJuBFkDxsZRTKc5xlRkz/bP2T7CorvwZZFX4Cs8Hg@public.gmane.org>
2014-08-26 20:41 ` Valdis.Kletnieks-PjAqaU27lzQ
2014-08-26 18:49 ` [PATCH][input-led] " Valdis.Kletnieks
2014-08-26 20:02 ` Sabrina Dubroca
2014-08-26 21:55 ` Sabrina Dubroca
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140826133238.GA28108@type.bordeaux.inria.fr \
--to=samuel.thibault-vyw+cpy1g1pg9huczpvpmw@public.gmane.org \
--cc=Valdis.Kletnieks-PjAqaU27lzQ@public.gmane.org \
--cc=akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org \
--cc=cooloney-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=hughd-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org \
--cc=johannes-cdvu00un1VgdHxzADdlk8Q@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-leds-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-wireless-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=sd-y1jBWg8GRStKuXlAQpz2QA@public.gmane.org \
--cc=vdonnefort-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).