aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jfs/jfs_logmgr.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/jfs/jfs_logmgr.c')
-rw-r--r--fs/jfs/jfs_logmgr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/jfs/jfs_logmgr.c b/fs/jfs/jfs_logmgr.c
index 5065baa530b6..6a3f00dc8c83 100644
--- a/fs/jfs/jfs_logmgr.c
+++ b/fs/jfs/jfs_logmgr.c
@@ -62,7 +62,6 @@
62#include <linux/fs.h> 62#include <linux/fs.h>
63#include <linux/blkdev.h> 63#include <linux/blkdev.h>
64#include <linux/interrupt.h> 64#include <linux/interrupt.h>
65#include <linux/smp_lock.h>
66#include <linux/completion.h> 65#include <linux/completion.h>
67#include <linux/kthread.h> 66#include <linux/kthread.h>
68#include <linux/buffer_head.h> /* for sync_blockdev() */ 67#include <linux/buffer_head.h> /* for sync_blockdev() */
@@ -1590,7 +1589,7 @@ void jfs_flush_journal(struct jfs_log *log, int wait)
1590 set_current_state(TASK_UNINTERRUPTIBLE); 1589 set_current_state(TASK_UNINTERRUPTIBLE);
1591 LOGGC_UNLOCK(log); 1590 LOGGC_UNLOCK(log);
1592 schedule(); 1591 schedule();
1593 current->state = TASK_RUNNING; 1592 __set_current_state(TASK_RUNNING);
1594 LOGGC_LOCK(log); 1593 LOGGC_LOCK(log);
1595 remove_wait_queue(&target->gcwait, &__wait); 1594 remove_wait_queue(&target->gcwait, &__wait);
1596 } 1595 }
@@ -2354,14 +2353,15 @@ int jfsIOWait(void *arg)
2354 lbmStartIO(bp); 2353 lbmStartIO(bp);
2355 spin_lock_irq(&log_redrive_lock); 2354 spin_lock_irq(&log_redrive_lock);
2356 } 2355 }
2357 spin_unlock_irq(&log_redrive_lock);
2358 2356
2359 if (freezing(current)) { 2357 if (freezing(current)) {
2358 spin_unlock_irq(&log_redrive_lock);
2360 refrigerator(); 2359 refrigerator();
2361 } else { 2360 } else {
2362 set_current_state(TASK_INTERRUPTIBLE); 2361 set_current_state(TASK_INTERRUPTIBLE);
2362 spin_unlock_irq(&log_redrive_lock);
2363 schedule(); 2363 schedule();
2364 current->state = TASK_RUNNING; 2364 __set_current_state(TASK_RUNNING);
2365 } 2365 }
2366 } while (!kthread_should_stop()); 2366 } while (!kthread_should_stop());
2367 2367