Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1385114
| From | Sergey Senozhatsky <sergey.senozhatsky@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v11 3/3] printk: make printk.synchronous param rw |
| Date | 2016-04-22 14:20 +0200 |
| Message-ID | <rqIdY-1Ko-3@gated-at.bofh.it> (permalink) |
| References | (2 earlier) <rlvU6-6xI-9@gated-at.bofh.it> <rlx9w-7sb-13@gated-at.bofh.it> <rqkEG-8dU-13@gated-at.bofh.it> <rqy4W-1TO-1@gated-at.bofh.it> <rqEWL-7zC-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hello, On (04/22/16 10:41), Petr Mladek wrote: > Ah, I see and feel shame. It is actually explained in the comment > above printk_initcall_done declaration. Well, the explanation confused > me a bit ;-) I suggest to change it sligtly: > > /* > * printk_sync_set() can be called from two places: > * > * - early from start_kernel()->parse_args(). But we can't kthread_run() > * at this stage, so we just set the param value. The actual > * initalization happens later, from the late_initcall(). > * > * - even later from user space via sysfs knob. We can kthread_run() > * there if needed. > */ > > Or we could write this even more explicitely: > > /* > * Prevent starting kthreads from start_kernel()->parse_args(). It is not > * possible at this stage. Instead do so via the inticall. > */ > static bool printk_initcall_done; will take a look, thanks! > In each case, I would move the comment and the declaration right above the > printk_sync_set(). I'm also thinking about renaming it to `printk_kthread_can_run', feels like this name gives better description. will resend shortly. -ss
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [PATCH v11 3/3] printk: make printk.synchronous param rw Petr Mladek <pmladek@suse.com> - 2016-04-21 13:10 +0200
Re: [PATCH v11 3/3] printk: make printk.synchronous param rw Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> - 2016-04-22 03:30 +0200
Re: [PATCH v11 3/3] printk: make printk.synchronous param rw Petr Mladek <pmladek@suse.com> - 2016-04-22 10:50 +0200
Re: [PATCH v11 3/3] printk: make printk.synchronous param rw Sergey Senozhatsky <sergey.senozhatsky@gmail.com> - 2016-04-22 14:20 +0200
csiph-web