bdi: wake up concurrent wb_shutdown() callers.
[sfrench/cifs-2.6.git] / mm / backing-dev.c
index 023190c69dce71c528cccb7498e7456d41f674d3..fa5e6d7406d19e0f4e363d8ee1c5321690f3ae34 100644 (file)
@@ -383,7 +383,7 @@ static void wb_shutdown(struct bdi_writeback *wb)
         * the barrier provided by test_and_clear_bit() above.
         */
        smp_wmb();
-       clear_bit(WB_shutting_down, &wb->state);
+       clear_and_wake_up_bit(WB_shutting_down, &wb->state);
 }
 
 static void wb_exit(struct bdi_writeback *wb)