Hello,
In my quest for changing locking around page faults to make things easier for
filesystems I found out get_user_pages() users could use a cleanup. The
knowledge about necessary locking for get_user_pages() is in tons of places in
drivers and quite a few of them actually get it wrong (don't have mmap_sem when
calling get_user_pages() or hold mmap_sem when calling copy_from_user() in the
surrounding code). Rather often this actually doesn't seem necessary. This
patch series converts lots of places to use either get_user_pages_fast()
or a new simple wrapper get_user_pages_unlocked() to remove the knowledge
of mmap_sem from the drivers. I'm still looking into converting a few remaining
drivers (most notably v4l2) which are more complex.
As I already wrote, in some cases I actually think drivers were buggy (and I
note that in corresponding changelogs). I would really like to ask respective
maintainers to have a look at the patches in their area. Also any other
comments are welcome. Thanks.
Honza
PS: Sorry for the huge recipient list but I don't really know how to trim it
down...
CC: Alexander Viro <[email protected]>
CC: Andreas Dilger <[email protected]>
CC: Andy Walls <[email protected]>
CC: Arnd Bergmann <[email protected]>
CC: Benjamin LaHaise <[email protected]>
CC: [email protected]
CC: Dan Williams <[email protected]>
CC: David Airlie <[email protected]>
CC: [email protected]
CC: Gleb Natapov <[email protected]>
CC: Greg Kroah-Hartman <[email protected]>
CC: [email protected]
CC: Jarod Wilson <[email protected]>
CC: Jayant Mangalampalli <[email protected]>
CC: Jean-Christophe Plagniol-Villard <[email protected]>
CC: Jesper Nilsson <[email protected]>
CC: Kai Makisara <[email protected]>
CC: [email protected]
CC: Laurent Pinchart <[email protected]>
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: Manu Abraham <[email protected]>
CC: Mark Allyn <[email protected]>
CC: Mikael Starvik <[email protected]>
CC: Mike Marciniszyn <[email protected]>
CC: Naren Sankar <[email protected]>
CC: Paolo Bonzini <[email protected]>
CC: Peng Tao <[email protected]>
CC: Roland Dreier <[email protected]>
CC: Sage Weil <[email protected]>
CC: Scott Davilla <[email protected]>
CC: Timur Tabi <[email protected]>
CC: Tomi Valkeinen <[email protected]>
CC: Tony Luck <[email protected]>
CC: Trond Myklebust <[email protected]>
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel