Re: [RFC][PATCH 0/2] Access console drivers list under console_sem

2019-04-23 Thread Sergey Senozhatsky
On (04/23/19 09:48), Steven Rostedt wrote: > > RFC > > > > Normally, we grab console_sem lock before we iterate consoles > > list, which is necessary if we want to be race free. The only exception > > to this rule is console_flush_on_panic(). However, it seems that we are > > not fully rac

Re: [RFC][PATCH 0/2] Access console drivers list under console_sem

2019-04-23 Thread Steven Rostedt
On Tue, 23 Apr 2019 15:25:09 +0900 Sergey Senozhatsky wrote: > Petr, Steven, > > RFC > > Normally, we grab console_sem lock before we iterate consoles > list, which is necessary if we want to be race free. The only exception > to this rule is console_flush_on_panic(). However, it se

[RFC][PATCH 0/2] Access console drivers list under console_sem

2019-04-22 Thread Sergey Senozhatsky
Petr, Steven, RFC Normally, we grab console_sem lock before we iterate consoles list, which is necessary if we want to be race free. The only exception to this rule is console_flush_on_panic(). However, it seems that we are not fully race free - register_console() iterates console