Commit 395b6e1d authored by Ingo Molnar's avatar Ingo Molnar

[PATCH] Double unlock in BSD accounting speedup patch

doh - double unlock in the acct-is-on path. Noticed by Aneesh Kumar K.V
<aneesh.kumar@digital.com>
parent c7b0b16d
......@@ -406,14 +406,13 @@ void acct_process(long exitcode)
spin_lock(&acct_globals.lock);
file = acct_globals.file;
if (!file)
goto out_unlock;
if (unlikely(!file)) {
spin_unlock(&acct_globals.lock);
return;
}
get_file(file);
spin_unlock(&acct_globals.lock);
do_acct_process(exitcode, file);
fput(file);
out_unlock:
spin_unlock(&acct_globals.lock);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment