aboutsummaryrefslogtreecommitdiff
path: root/drivers/scsi/mpt2sas/mpi/mpi2_raid.h
diff options
context:
space:
mode:
authorStephane Eranian <[email protected]>2011-02-18 14:40:01 +0200
committerIngo Molnar <[email protected]>2011-02-23 11:35:46 +0100
commit3f7cce3c18188a067d463749168bdda5abc5b0f7 (patch)
tree9c161a970a19176f26dc29811dc9ae4d64bfe8a8 /drivers/scsi/mpt2sas/mpi/mpi2_raid.h
parentc97cf42219b7b6037d2f96c27a5f114f2383f828 (diff)
perf_events: Fix rcu and locking issues with cgroup support
This patches ensures that we do not end up calling perf_cgroup_from_task() when there is no cgroup event. This avoids potential RCU and locking issues. The change in perf_cgroup_set_timestamp() ensures we check against ctx->nr_cgroups. It also avoids calling perf_clock() tiwce in a row. It also ensures we do need to grab ctx->lock before calling the function. We drop update_cgrp_time() from task_clock_event_read() because it is not needed. This also avoids having to deal with perf_cgroup_from_task(). Thanks to Peter Zijlstra for his help on this. Signed-off-by: Stephane Eranian <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions