[SPARC64]: Simplify VDC device probing.
[pandora-kernel.git] / drivers / block / pktcdvd.c
index ce64e86..31be33e 100644 (file)
@@ -1593,6 +1593,7 @@ static int kcdrwd(void *foobar)
        long min_sleep_time, residue;
 
        set_user_nice(current, -20);
+       set_freezable();
 
        for (;;) {
                DECLARE_WAITQUEUE(wait, current);
@@ -1652,9 +1653,6 @@ static int kcdrwd(void *foobar)
                                }
                        }
 
-                       if (signal_pending(current)) {
-                               flush_signals(current);
-                       }
                        if (kthread_should_stop())
                                break;
                }