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() ?
Op 06-01-13 20:01, Konstantin Belousov schreef:
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
dri-devel@lists.freedesktop.org