Re: Use of mmap_sem in __qbuf_userptr()

2015-03-06 Thread Hans Verkuil
Hi Jan, On 03/05/2015 03:27 PM, Jan Kara wrote: > Hello, > > so after a long pause I've got back to my simplification patches around > get_user_pages(). After the simplification done by commit f035eb4e976ef5 > (videobuf2: fix lockdep warning) it seems unnecessary to take mmap_sem > already wh

Use of mmap_sem in __qbuf_userptr()

2015-03-05 Thread Jan Kara
Hello, so after a long pause I've got back to my simplification patches around get_user_pages(). After the simplification done by commit f035eb4e976ef5 (videobuf2: fix lockdep warning) it seems unnecessary to take mmap_sem already when calling __qbuf_userptr(). As far as I understand what __qb