Lai Jiangshan 52fbe9cde7 ring-buffer: Move disabled check into preempt disable section
The ring buffer resizing and resetting relies on a schedule RCU
action. The buffers are disabled, a synchronize_sched() is called
and then the resize or reset takes place.

But this only works if the disabling of the buffers are within the
preempt disabled section, otherwise a window exists that the buffers
can be written to while a reset or resize takes place.

Cc: stable@kernel.org
Reported-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
LKML-Reference: <4B949E43.2010906@cn.fujitsu.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2010-03-12 20:26:56 -05:00
..
2009-09-21 14:29:21 +02:00
2009-12-15 08:53:10 -08:00
2009-12-22 12:27:34 -05:00
2010-02-25 12:02:13 +01:00
2009-12-06 21:10:56 +01:00
2010-02-03 10:21:57 +11:00
2009-09-18 09:48:52 -07:00
2009-12-14 23:55:34 +01:00
2010-01-21 13:40:18 +01:00
2009-07-24 10:53:29 +02:00
2009-12-31 19:45:04 +00:00
2010-02-26 08:20:46 +01:00
2010-02-02 06:58:27 +01:00
2009-12-09 10:03:07 +01:00
2010-02-18 14:30:18 -08:00
2009-12-22 14:10:37 -08:00
2009-09-23 18:13:10 -07:00
2010-01-21 13:40:18 +01:00