tracing/stack-tracer: avoid races accessing file
authorTörök Edwin <edwintorok@gmail.com>
Sun, 23 Nov 2008 11:08:10 +0000 (13:08 +0200)
committerIngo Molnar <mingo@elte.hu>
Sun, 23 Nov 2008 11:20:26 +0000 (12:20 +0100)
commite38da59269be8c0196d16dff1be5bb26076afc6a
treeb43829f918725af5a2875f0244db62c4cc701c27
parent8d26487fd4ddda7a0237da418fb8669fb06ae557
tracing/stack-tracer: avoid races accessing file

Impact: fix race

vma->vm_file reference is only stable while holding the mmap_sem,
so move usage of it to within the critical section.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace.c