lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Tue, 24 Jul 2012 08:23:00 +0800 From: Bryan Wu <bryan.wu@...onical.com> To: Mark Brown <broonie@...nsource.wolfsonmicro.com> Cc: shuahkhan@...il.com, "Kim, Milo" <Milo.Kim@...com>, "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org> Subject: Re: [PATCH v2] leds: add new lp8788 led driver On Mon, Jul 23, 2012 at 2:19 AM, Mark Brown <broonie@...nsource.wolfsonmicro.com> wrote: > On Sat, Jul 21, 2012 at 02:48:49AM +0800, Bryan Wu wrote: > >> Actually cancel_work_sync() is quite similar to flush_work_sync() >> here. For the timer thing, in fact it is NULL when cancel_work_sync() >> call __cancel_work_timer(). > >> And Mark, do you have any advice about the flush_work_sync() and >> cancel_work_sync(). I saw you use flush in the >> drivers/leds/leds-wm8350.c. > > If the work is flushed then the state that userspace thought was set > when the driver is removed will actually be set before the driver is > removed. This is fairly minor but might be useful. So what's kind of state you mentioned here that is cared by user space. I find these 2 functions are quite confused for use right now. Literally, canceling normally will remove pending work item and wait for running work item to finish. flushing will wait for both pending and running work item to finish. Thanks, -- Bryan Wu <bryan.wu@...onical.com> Kernel Developer +86.186-168-78255 Mobile Canonical Ltd. www.canonical.com Ubuntu - Linux for human beings | www.ubuntu.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists