Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 938
b: refs/heads/master
c: abd0cf7
h: refs/heads/master
v: v3
  • Loading branch information
Nathan Scott authored and Christoph Hellwig committed May 5, 2005
1 parent 9b0b2b5 commit 7918ccb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 764433b7f1cf5d7b5e27ceb4f5546042e1f4acc7
refs/heads/master: abd0cf7aeaaf8a15d9777e65606b6076868b6186
11 changes: 9 additions & 2 deletions trunk/fs/xfs/linux-2.6/xfs_buf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1746,13 +1746,15 @@ STATIC DECLARE_COMPLETION(pagebuf_daemon_done);
STATIC struct task_struct *pagebuf_daemon_task;
STATIC int pagebuf_daemon_active;
STATIC int force_flush;

STATIC int force_sleep;

STATIC int
pagebuf_daemon_wakeup(
int priority,
unsigned int mask)
{
if (force_sleep)
return 0;
force_flush = 1;
barrier();
wake_up_process(pagebuf_daemon_task);
Expand All @@ -1778,7 +1780,12 @@ pagebuf_daemon(

INIT_LIST_HEAD(&tmp);
do {
try_to_freeze(PF_FREEZE);
if (unlikely(current->flags & PF_FREEZE)) {
force_sleep = 1;
refrigerator(PF_FREEZE);
} else {
force_sleep = 0;
}

set_current_state(TASK_INTERRUPTIBLE);
schedule_timeout((xfs_buf_timer_centisecs * HZ) / 100);
Expand Down

0 comments on commit 7918ccb

Please sign in to comment.