Commit 822455f0 authored by Bob Miller's avatar Bob Miller Committed by Linus Torvalds

[PATCH] bad BUG_ON from acct.c

Remove bogus BUG_ON().  On UP kernels spinlocks become NOPs so it is
not possible to test the state of a lock.
parent 83d8dc13
...@@ -160,8 +160,6 @@ void acct_file_reopen(struct file *file) ...@@ -160,8 +160,6 @@ void acct_file_reopen(struct file *file)
{ {
struct file *old_acct = NULL; struct file *old_acct = NULL;
BUG_ON(!spin_is_locked(&acct_globals.lock));
if (acct_globals.file) { if (acct_globals.file) {
old_acct = acct_globals.file; old_acct = acct_globals.file;
del_timer(&acct_globals.timer); del_timer(&acct_globals.timer);
......
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