diff options
| author | Lai Jiangshan <[email protected]> | 2010-03-08 06:50:43 +0000 |
|---|---|---|
| committer | Steven Rostedt <[email protected]> | 2010-03-13 01:26:56 +0000 |
| commit | 52fbe9cde7fdb5c6fac196d7ebd2d92d05ef3cd4 (patch) | |
| tree | 77ec9beecf7a58ed06f59c589f122caf87ec4f0b /net/lapb/lapb_in.c | |
| parent | Merge branch 'tip/tracing/core' of git://git.kernel.org/pub/scm/linux/kernel/... (diff) | |
| download | kernel-52fbe9cde7fdb5c6fac196d7ebd2d92d05ef3cd4.tar.gz kernel-52fbe9cde7fdb5c6fac196d7ebd2d92d05ef3cd4.zip | |
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: [email protected]
Reported-by: Li Zefan <[email protected]>
Signed-off-by: Lai Jiangshan <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions
