aboutsummaryrefslogtreecommitdiff
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorJason Baron <[email protected]>2014-07-02 15:52:44 +0000
committerIngo Molnar <[email protected]>2014-07-16 13:38:21 +0200
commit5cd08fbfdb6baa9fe98f530b76898fc5725a6289 (patch)
treeb4f9df78a954c306cacea7372d920d1eb373140f /fs/jbd2/commit.c
parent6e76ea8a8209386c3cc7ee5594e6ea5d25525cf2 (diff)
sched: Fix static_key race with sched_feat()
As pointed out by Andi Kleen, the usage of static keys can be racy in sched_feat_disable() vs. sched_feat_enable(). Currently, we first check the value of keys->enabled, and subsequently update the branch direction. This, can be racy and can potentially leave the keys in an inconsistent state. Take the i_mutex around these calls to resolve the race. Reported-by: Andi Kleen <[email protected]> Signed-off-by: Jason Baron <[email protected]> Signed-off-by: Peter Zijlstra <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: [email protected] Link: http://lkml.kernel.org/r/9d7780c83db26683955cd01e6bc654ee2586e67f.1404315388.git.jbaron@akamai.com Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions