NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/50349: radeondrmkms vt-switching crash



The following reply was made to PR kern/50349; it has been noted by GNATS.

From: coypu%SDF.ORG@localhost
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: kern/50349: radeondrmkms vt-switching crash
Date: Sat, 19 Nov 2016 14:41:35 +0000

 Hi,
 
 In sys/external/bsd/drm2/drm/drm_vma_manager.c:drm_vma_offset_add, we
 use rw_enter(&node->von_lock, RW_WRITER); as preventing races.
 
 in sys/external/bsd/drm2/dist/drm/drm_vma_manager.c:drm_vma_offset_add
 linux uses write_lock(&mgr->vm_lock); 
 
 Isn't this the wrong lock? should we lock mgr?
 
 Thanks.
 


Home | Main Index | Thread Index | Old Index