Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1489453
| From | Nicolai Stange <nicstange@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] smp: smp_call_on_cpu(): use INIT_WORK_ONSTACK() for automatic work_struct |
| Date | 2016-09-22 21:20 +0200 |
| Message-ID | <skhHk-1Xw-13@gated-at.bofh.it> (permalink) |
| References | <skgLf-1mw-21@gated-at.bofh.it> <skheh-1xN-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Peter Zijlstra <peterz@infradead.org> writes: > On Thu, Sep 22, 2016 at 08:17:58PM +0200, Nicolai Stange wrote: >> This new warning >> >> INFO: trying to register non-static key. >> the code is fine but needs lockdep annotation. >> turning off the locking correctness validator. >> CPU: 0 PID: 82 Comm: kworker/0:1 Not tainted 4.8.0-rc6+ #360 >> Hardware name: Dell Inc. Latitude E6540/0725FP, BIOS A10 06/26/2014 >> Workqueue: events smp_call_on_cpu_callback > > https://lkml.kernel.org/r/tip-8db549491c4a3ce9e1d509b75f78516e497f48ec@git.kernel.org Ah, thanks for letting me know. One minor question regarding your patch though: it hasn't got a destroy_work_on_stack(). Isn't one needed because of INIT_WORK_ONSTACK() -> __INIT_WORK() -> __init_work() -> debug_object_init_on_stack() ? At least work_on_cpu() destroys its local work_struct that way... Thanks, Nicolai
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] smp: smp_call_on_cpu(): use INIT_WORK_ONSTACK() for automatic work_struct Nicolai Stange <nicstange@gmail.com> - 2016-09-22 20:20 +0200
Re: [PATCH] smp: smp_call_on_cpu(): use INIT_WORK_ONSTACK() for automatic work_struct Peter Zijlstra <peterz@infradead.org> - 2016-09-22 20:50 +0200
Re: [PATCH] smp: smp_call_on_cpu(): use INIT_WORK_ONSTACK() for automatic work_struct Nicolai Stange <nicstange@gmail.com> - 2016-09-22 21:20 +0200
Re: [PATCH] smp: smp_call_on_cpu(): use INIT_WORK_ONSTACK() for automatic work_struct Peter Zijlstra <peterz@infradead.org> - 2016-09-23 09:30 +0200
csiph-web