From: Konstantin Belousov Subject: ttm_write_lock uninterruptible sleep Date: Sun, 6 Jan 2013 21:01:49 +0200 Message-ID: <20130106190149.GV82219@kib.kiev.ua> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0896223503==" Return-path: Received: from kib.kiev.ua (kib.kiev.ua [91.200.235.14]) by gabe.freedesktop.org (Postfix) with ESMTP id 248BDE61CE for ; Sun, 6 Jan 2013 11:15:05 -0800 (PST) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: David Airlie Cc: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0896223503== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HHsIqWg7hQfWlXNC" Content-Disposition: inline --HHsIqWg7hQfWlXNC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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() ? --HHsIqWg7hQfWlXNC Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQIcBAEBAgAGBQJQ6cocAAoJEJDCuSvBvK1BmBAP/0Gk7lOS0Gj5RGHV1LxrTNBC 0vpwLY/qS/onIMVfrYk2A+S0j8bS0sLAG+pj+Lwd0ChqKJdvRBppAyDEyhOTOBXl 8FNu9p6t0HGhBlx2dppSiZO846JC+xU3R20PPH5q8ayJ9T2tmgY++KrFd8qCBaVP aHgDS6ba3/uB/9OqLPd3qD3tOwu6v1h08LqClpAljhq2CmUlOQTk3W5TAn6DWXgq HoGwxwW57JC/fGcnVF9fypSDaQvxzp7YBKuQgnoCop+SdHiO131Ht7yvMBwbyaCZ udCizE5fuaGHrKnC8x4exVytLAgz/de5eCMjrEiJ4l11zqcp7A4WS9Re1InwNfDE wu6/OuL0Nk4c1Ee2KogmNfVFUF5W/EZNMhWZ8VysK8zy7n92IZ+QmcCnwEX1Dig1 IB4lkTiPlYDP/hZb5GC2irSlgS55z+T+bSD+P5R8i7s/iW/lduLivgb7ZnD3p8CH nraVLoXrw9rTTu8krF53JPK145QFtTdvWvl0dWUk2VM/jO85PzrSI2nLYXLw5FEL 0JlNePAfNo6Ht+Efsitg9mXx/cFDS/MIoIL82nY4rHQs5TX3Y32KHkiOdR8928PG gOj86XqEnaZQMA7JEQJczcBACOyUtXNhgfLYJOLQ4lzX4Y6Sq+4TtIZ1sErRqj1O e4dQgrsboRQts7x0JTlF =OMV+ -----END PGP SIGNATURE----- --HHsIqWg7hQfWlXNC-- --===============0896223503== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel --===============0896223503==--