{
DECLARE_WAITQUEUE(wait, current);
+ __set_current_state(TASK_UNINTERRUPTIBLE);
Dprintk("stopping async IO threads %p.\n", iot);
add_wait_queue(&iot->wait_shutdown, &wait);
wake_up_all(&iot->async_sleep);
spin_unlock(&iot->async_lock);
- __set_current_state(TASK_UNINTERRUPTIBLE);
Dprintk("waiting for async IO threads %p to exit.\n", iot);
schedule();
remove_wait_queue(&iot->wait_shutdown, &wait);