Re: [PATCH] drm: Give the DRM device's anon_inode a unique lockclass for its mmap_rswem

2017-12-11 Thread Daniel Vetter
On Mon, Dec 11, 2017 at 6:27 PM, Chris Wilson wrote: > Quoting Daniel Vetter (2017-12-11 17:20:32) >> On Mon, Dec 11, 2017 at 11:39 AM, Chris Wilson >> wrote: >> > Teach lockdep to track the device's internal mmapping separately >> > from the

Re: [PATCH] drm: Give the DRM device's anon_inode a unique lockclass for its mmap_rswem

2017-12-11 Thread Chris Wilson
Quoting Daniel Vetter (2017-12-11 17:20:32) > On Mon, Dec 11, 2017 at 11:39 AM, Chris Wilson > wrote: > > Teach lockdep to track the device's internal mmapping separately > > from the generic lockclass over all other inodes. Since this is device > > private we wish to

Re: [PATCH] drm: Give the DRM device's anon_inode a unique lockclass for its mmap_rswem

2017-12-11 Thread Daniel Vetter
On Mon, Dec 11, 2017 at 11:39 AM, Chris Wilson wrote: > Teach lockdep to track the device's internal mmapping separately > from the generic lockclass over all other inodes. Since this is device > private we wish to allow a different locking hierarchy than is typified >

[PATCH] drm: Give the DRM device's anon_inode a unique lockclass for its mmap_rswem

2017-12-11 Thread Chris Wilson
Teach lockdep to track the device's internal mmapping separately from the generic lockclass over all other inodes. Since this is device private we wish to allow a different locking hierarchy than is typified by the requirement for the mmap_rwsem being the outermost lock for handling pagefaults. By