Loading drivers/block/swim.c +3 −3 Original line number Diff line number Diff line Loading @@ -327,7 +327,7 @@ static inline void swim_motor(struct swim __iomem *base, swim_select(base, RELAX); if (swim_readbit(base, MOTOR_ON)) break; current->state = TASK_INTERRUPTIBLE; set_current_state(TASK_INTERRUPTIBLE); schedule_timeout(1); } } else if (action == OFF) { Loading @@ -346,7 +346,7 @@ static inline void swim_eject(struct swim __iomem *base) swim_select(base, RELAX); if (!swim_readbit(base, DISK_IN)) break; current->state = TASK_INTERRUPTIBLE; set_current_state(TASK_INTERRUPTIBLE); schedule_timeout(1); } swim_select(base, RELAX); Loading @@ -370,7 +370,7 @@ static inline int swim_step(struct swim __iomem *base) for (wait = 0; wait < HZ; wait++) { current->state = TASK_INTERRUPTIBLE; set_current_state(TASK_INTERRUPTIBLE); schedule_timeout(1); swim_select(base, RELAX); Loading Loading
drivers/block/swim.c +3 −3 Original line number Diff line number Diff line Loading @@ -327,7 +327,7 @@ static inline void swim_motor(struct swim __iomem *base, swim_select(base, RELAX); if (swim_readbit(base, MOTOR_ON)) break; current->state = TASK_INTERRUPTIBLE; set_current_state(TASK_INTERRUPTIBLE); schedule_timeout(1); } } else if (action == OFF) { Loading @@ -346,7 +346,7 @@ static inline void swim_eject(struct swim __iomem *base) swim_select(base, RELAX); if (!swim_readbit(base, DISK_IN)) break; current->state = TASK_INTERRUPTIBLE; set_current_state(TASK_INTERRUPTIBLE); schedule_timeout(1); } swim_select(base, RELAX); Loading @@ -370,7 +370,7 @@ static inline int swim_step(struct swim __iomem *base) for (wait = 0; wait < HZ; wait++) { current->state = TASK_INTERRUPTIBLE; set_current_state(TASK_INTERRUPTIBLE); schedule_timeout(1); swim_select(base, RELAX); Loading