From 0ea2d2b39b5c34a60cb258a007adec0e06c1954a Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Sun, 25 Jul 2010 14:29:13 +0300 Subject: [PATCH] --- yaml --- r: 208334 b: refs/heads/master c: c5f7ad233b8805dae06e694538d8095b19f3c560 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/mm/backing-dev.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 3e3a1bf15c5c..3a5bb7d4aa5b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 94eac5e62364df4e605e451218ee6024a7ba664f +refs/heads/master: c5f7ad233b8805dae06e694538d8095b19f3c560 diff --git a/trunk/mm/backing-dev.c b/trunk/mm/backing-dev.c index 327e36d1d623..b1dc2d4b9cdd 100644 --- a/trunk/mm/backing-dev.c +++ b/trunk/mm/backing-dev.c @@ -342,6 +342,7 @@ static int bdi_forker_thread(void *ptr) wb_do_writeback(me, 0); spin_lock_bh(&bdi_lock); + set_current_state(TASK_INTERRUPTIBLE); /* * Check if any existing bdi's have dirty data without @@ -357,8 +358,6 @@ static int bdi_forker_thread(void *ptr) bdi_add_default_flusher_thread(bdi); } - set_current_state(TASK_INTERRUPTIBLE); - if (list_empty(&bdi_pending_list)) { unsigned long wait;