Re: [PATCH next v4 2/2] printk: remove logbuf_lock writer-protection of ringbuffer

2020-12-09 Thread Petr Mladek
On Wed 2020-12-09 01:50:53, John Ogness wrote: > Since the ringbuffer is lockless, there is no need for it to be > protected by @logbuf_lock. Remove @logbuf_lock writer-protection of > the ringbuffer. The reader-protection is not removed because some > some variables used by readers are using

Re: [PATCH next v4 2/2] printk: remove logbuf_lock writer-protection of ringbuffer

2020-12-08 Thread Sergey Senozhatsky
On (20/12/09 01:50), John Ogness wrote: > Since the ringbuffer is lockless, there is no need for it to be > protected by @logbuf_lock. Remove @logbuf_lock writer-protection of > the ringbuffer. The reader-protection is not removed because some > some variables used by readers are using

[PATCH next v4 2/2] printk: remove logbuf_lock writer-protection of ringbuffer

2020-12-08 Thread John Ogness
Since the ringbuffer is lockless, there is no need for it to be protected by @logbuf_lock. Remove @logbuf_lock writer-protection of the ringbuffer. The reader-protection is not removed because some some variables used by readers are using @logbuf_lock for synchronization: @syslog_seq,