summaryrefslogtreecommitdiff
path: root/kernel/locking/mutex-debug.c
diff options
context:
space:
mode:
authorPavankumar Kondeti <pkondeti@codeaurora.org>2017-05-16 15:29:04 +0530
committerPavankumar Kondeti <pkondeti@codeaurora.org>2017-05-22 13:29:16 +0530
commit3b8631c0d5bd7d0a4dfd6acfa20f2138f9262fd4 (patch)
tree6d80620461f628889f3a9e2ddc8146bbbaf97695 /kernel/locking/mutex-debug.c
parent60be71604a84d2e047215cb702d6324379a353bb (diff)
hrtimer: Don't drop the base lock when migration during isolation
The current code drops the base lock and wait for the running hrtimer's expiry event to be processed on the isolated CPU. This leaves a window, where the running hrtimer can migrate to a different CPU or even get freed. The pinned hrtimers that are maintained in a temporarily list also can get freed while the lock is dropped. The only reason for waiting for the running hrtimer is to make sure that this hrtimer is migrated away from the isolated CPU. This is a problem only if this hrtimer gets rearmed from it's callback. As the possibility of this race is very rare, it is better to have this limitation instead of fixing the above mentioned bugs with more intrusive changes. Change-Id: I14ba67cacb321d8b561195935592bb9979996a27 Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Diffstat (limited to 'kernel/locking/mutex-debug.c')
0 files changed, 0 insertions, 0 deletions