while (atomic_read(&dev->refcnt) != 1) {
current->state = TASK_INTERRUPTIBLE;
schedule_timeout(HZ / 4);
- current->state = TASK_RUNNING;
if ((jiffies - warning_time) > 10 * HZ) {
printk(KERN_EMERG "atm_dev_deregister: waiting for "
"dev %d to become free. Usage count = %d\n",
req(hdev, opt);
schedule_timeout(timeout);
- set_current_state(TASK_RUNNING);
remove_wait_queue(&hdev->req_wait_q, &wait);
if (signal_pending(current))
__set_current_state(TASK_INTERRUPTIBLE);
schedule_timeout(HZ);
- __set_current_state(TASK_RUNNING);
}
/* clean up the sync_buff queue */
__set_current_state(TASK_INTERRUPTIBLE);
schedule_timeout(HZ);
- __set_current_state(TASK_RUNNING);
}
/* release the sending multicast socket */
if (!p) {
set_current_state(TASK_UNINTERRUPTIBLE);
schedule_timeout(HZ/2);
- current->state = TASK_RUNNING;
continue;
}
rqstp->rq_argpages[rqstp->rq_arghi++] = p;