Skip to contentSkip to conversation

ttm_write_lock uninterruptible sleep

DISCUSSION Konstantin Belousov 2 participants 2 messages Jan 6, 2013 – Jan 7, 2013

lore
Share & tools
lore
#0 lore raw

In ttm_write_lock(), for the interruptible sleep, the __ttm_write_lock() is used as the sleep predicate. On the other hand, for the uninterruptible case, __ttm_read_lock() is evaluated. It seems that the code was not changed since the initial import at the end of 2009. Shouldn't both cases use the same __ttm_write_lock() ?

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

Op 06-01-13 20:01, Konstantin Belousov schreef:

Quoted 6 lines

In ttm_write_lock(), for the interruptible sleep, the __ttm_write_lock() is used as the sleep predicate. On the other hand, for the uninterruptible case, __ttm_read_lock() is evaluated. It seems that the code was not changed since the initial import at the end of 2009. Shouldn't both cases use the same __ttm_write_lock() ?

Yes. :-)

~Maarten