aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fs-writeback.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/fs-writeback.c')
-rw-r--r--fs/fs-writeback.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c
index d5be1693ac93..d67989b8ba44 100644
--- a/fs/fs-writeback.c
+++ b/fs/fs-writeback.c
@@ -73,9 +73,9 @@ static void bdi_queue_work(struct backing_dev_info *bdi,
73 * If the default thread isn't there, make sure we add it. When 73 * If the default thread isn't there, make sure we add it. When
74 * it gets created and wakes up, we'll run this work. 74 * it gets created and wakes up, we'll run this work.
75 */ 75 */
76 if (unlikely(list_empty_careful(&bdi->wb_list))) 76 if (unlikely(!bdi->wb.task)) {
77 wake_up_process(default_backing_dev_info.wb.task); 77 wake_up_process(default_backing_dev_info.wb.task);
78 else { 78 } else {
79 struct bdi_writeback *wb = &bdi->wb; 79 struct bdi_writeback *wb = &bdi->wb;
80 80
81 if (wb->task) 81 if (wb->task)