[PATCH] backing-dev: add for 'fix wakeup timer races with

From: Chanho Min
Date: Mon Jan 16 2012 - 00:14:48 EST


Signed-off-by: Chanho Min <chanho.min@xxxxxxx>
---
fs/fs-writeback.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c
index f855916..ee40833 100644
--- a/fs/fs-writeback.c
+++ b/fs/fs-writeback.c
@@ -97,7 +97,7 @@ static void bdi_wakeup_flusher(struct backing_dev_info *bdi)
{
if (bdi->wb.task) {
wake_up_process(bdi->wb.task);
- } else {
+ } else if (bdi->dev) {
/*
* The bdi thread isn't there, wake up the forker thread which
* will create and run it.
--
1.7.0.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/