]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Do not call malloc(M_WAITOK) while bodev->fence_lock mutex is
authorkib <kib@FreeBSD.org>
Sat, 23 Mar 2013 22:23:15 +0000 (22:23 +0000)
committerkib <kib@FreeBSD.org>
Sat, 23 Mar 2013 22:23:15 +0000 (22:23 +0000)
commitc41616c667f1b275506a4249e15b673576995321
tree93ff390e4f63cc85c4cb2b8df9015ba6fcbdcb7c
parent460d7eef6f3e509e8213335f1055079a604777c2
Do not call malloc(M_WAITOK) while bodev->fence_lock mutex is
held. The ttm_buffer_object_transfer() does not need the mutex locked
at all, except for the call to the driver sync_obj_ref() method.

Reported and tested by: dumbbell
MFC after:   2 weeks
sys/dev/drm2/ttm/ttm_bo_util.c