drm/nouveau: set TASK_(UN)INTERRUPTIBLE before schedule_timeout()
authorKulikov Vasiliy <segooon@gmail.com>
Mon, 26 Jul 2010 08:23:54 +0000 (12:23 +0400)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 2 Aug 2010 00:12:26 +0000 (10:12 +1000)
commit05991110cf94117dd488f6d64dabdea56ff35107
tree723b3fdb4ae0c9cca37049524dfdcd2142895882
parent0ccb3a75fe81ec3c4ceb7344c34d0497cbabb369
drm/nouveau: set TASK_(UN)INTERRUPTIBLE before schedule_timeout()

set_current_state() is called only once before the first iteration.
After return from schedule_timeout() current state is TASK_RUNNING. If
we are going to wait again, set_current_state() must be called.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_fence.c