[PATCH] drivers/block: fix-up schedule_timeout() usage
[safe/jmp/linux-2.6] / drivers / block / swim_iop.c
index a1283f6..89e3c2f 100644 (file)
@@ -338,8 +338,7 @@ static int swimiop_eject(struct floppy_state *fs)
                        err = -EINTR;
                        break;
                }
-               current->state = TASK_INTERRUPTIBLE;
-               schedule_timeout(1);
+               schedule_timeout_interruptible(1);
        }
        release_drive(fs);
        return cmd->error;