summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorLai Jiangshan <laijs@cn.fujitsu.com>2010-03-08 14:50:43 +0800
committerGreg Kroah-Hartman <gregkh@suse.de>2010-04-01 16:01:14 -0700
commit01a8e5d5cc7a5dde54fbff3cee4792a2501d133b (patch)
treedc115be6923030fb51218a811bf2dd083617bea3 /arch
parentcd8c2b3ae748b9e8e0c9bc397a5b030800f637ae (diff)
downloadlwn-01a8e5d5cc7a5dde54fbff3cee4792a2501d133b.tar.gz
lwn-01a8e5d5cc7a5dde54fbff3cee4792a2501d133b.zip
ring-buffer: Move disabled check into preempt disable section
commit 52fbe9cde7fdb5c6fac196d7ebd2d92d05ef3cd4 upstream. 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. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions