Commit c0a01355 authored by Dave Kleikamp's avatar Dave Kleikamp

JFS: Use cond_resched()

Simple janitoral code cleanup submitted by Christoph Hellwig
parent 047cef32
...@@ -2824,10 +2824,7 @@ int jfs_lazycommit(void) ...@@ -2824,10 +2824,7 @@ int jfs_lazycommit(void)
* We can be running indefinately if other processors * We can be running indefinately if other processors
* are adding transactions to this list * are adding transactions to this list
*/ */
if (need_resched()) { cond_resched();
current->state = TASK_RUNNING;
schedule();
}
LAZY_LOCK(flags); LAZY_LOCK(flags);
} }
...@@ -2945,10 +2942,7 @@ int jfs_sync(void) ...@@ -2945,10 +2942,7 @@ int jfs_sync(void)
* Just to be safe. I don't know how * Just to be safe. I don't know how
* long we can run without blocking * long we can run without blocking
*/ */
if (need_resched()) { cond_resched();
current->state = TASK_RUNNING;
schedule();
}
TXN_LOCK(); TXN_LOCK();
} else { } else {
/* We can't get the write lock. It may /* We can't get the write lock. It may
......
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