Make management of current->state more correct.

main
Rik Faith 2000-09-19 19:41:07 +00:00
parent 01346c98b1
commit de842ea5db
1 changed files with 1 additions and 1 deletions

View File

@ -224,9 +224,9 @@ drm_buf_t *mga_freelist_get(drm_device_t *dev)
dev_priv->last_prim_age);
set_bit(MGA_IN_GETBUF, &dev_priv->dispatch_status);
add_wait_queue(&dev_priv->buf_queue, &entry);
current->state = TASK_INTERRUPTIBLE;
for (;;) {
mga_dma_schedule(dev, 0);
current->state = TASK_INTERRUPTIBLE;
if(!test_bit(MGA_IN_GETBUF,
&dev_priv->dispatch_status))
break;