Re: [PATCH next v3 02/15] mtd: mtdoops: synchronize kmsg_dumper

2021-03-02 Thread Petr Mladek
On Tue 2021-03-02 11:45:27, John Ogness wrote: > On 2021-03-01, Petr Mladek wrote: > >> The kmsg_dumper can be called from any context and CPU, possibly > >> from multiple CPUs simultaneously. Since the writing of the buffer > >> can occur from a later scheduled work queue, the oops buffer must >

Re: [PATCH next v3 02/15] mtd: mtdoops: synchronize kmsg_dumper

2021-03-02 Thread John Ogness
On 2021-03-01, Petr Mladek wrote: >> The kmsg_dumper can be called from any context and CPU, possibly >> from multiple CPUs simultaneously. Since the writing of the buffer >> can occur from a later scheduled work queue, the oops buffer must >> be protected against simultaneous dumping. >> >> Use

Re: [PATCH next v3 02/15] mtd: mtdoops: synchronize kmsg_dumper

2021-03-01 Thread Petr Mladek
On Thu 2021-02-25 21:24:25, John Ogness wrote: > The kmsg_dumper can be called from any context and CPU, possibly > from multiple CPUs simultaneously. Since the writing of the buffer > can occur from a later scheduled work queue, the oops buffer must > be protected against simultaneous dumping. >

[PATCH next v3 02/15] mtd: mtdoops: synchronize kmsg_dumper

2021-02-25 Thread John Ogness
The kmsg_dumper can be called from any context and CPU, possibly from multiple CPUs simultaneously. Since the writing of the buffer can occur from a later scheduled work queue, the oops buffer must be protected against simultaneous dumping. Use an atomic bit to mark when the buffer is protected. R