All of lore.kernel.org
 help / color / mirror / Atom feed
* ttm_write_lock uninterruptible sleep
@ 2013-01-06 19:01 Konstantin Belousov
  2013-01-07 10:50 ` Maarten Lankhorst
  0 siblings, 1 reply; 2+ messages in thread
From: Konstantin Belousov @ 2013-01-06 19:01 UTC (permalink / raw)
  To: David Airlie; +Cc: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 325 bytes --]

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() ?

[-- Attachment #1.2: Type: application/pgp-signature, Size: 834 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: ttm_write_lock uninterruptible sleep
  2013-01-06 19:01 ttm_write_lock uninterruptible sleep Konstantin Belousov
@ 2013-01-07 10:50 ` Maarten Lankhorst
  0 siblings, 0 replies; 2+ messages in thread
From: Maarten Lankhorst @ 2013-01-07 10:50 UTC (permalink / raw)
  To: Konstantin Belousov; +Cc: Thomas Hellstrom, dri-devel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-01-07 10:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-06 19:01 ttm_write_lock uninterruptible sleep Konstantin Belousov
2013-01-07 10:50 ` Maarten Lankhorst

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.