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 <v...@zeniv.linux.org.uk> CC: Andreas Dilger <andreas.dil...@intel.com> CC: Andy Walls <awa...@md.metrocast.net> CC: Arnd Bergmann <a...@arndb.de> CC: Benjamin LaHaise <b...@kvack.org> CC: ceph-de...@vger.kernel.org CC: Dan Williams <dan.j.willi...@intel.com> CC: David Airlie <airl...@linux.ie> CC: dri-devel@lists.freedesktop.org CC: Gleb Natapov <g...@redhat.com> CC: Greg Kroah-Hartman <gre...@linuxfoundation.org> CC: hpdd-disc...@lists.01.org CC: Jarod Wilson <ja...@wilsonet.com> CC: Jayant Mangalampalli <jayant.mangalampa...@intel.com> CC: Jean-Christophe Plagniol-Villard <plagn...@jcrosoft.com> CC: Jesper Nilsson <jesper.nils...@axis.com> CC: Kai Makisara <kai.makis...@kolumbus.fi> CC: k...@vger.kernel.org CC: Laurent Pinchart <laurent.pinch...@ideasonboard.com> CC: linux-...@kvack.org CC: linux-cris-ker...@axis.com CC: linux-fb...@vger.kernel.org CC: linux-fsde...@vger.kernel.org CC: linux-i...@vger.kernel.org CC: linux-me...@vger.kernel.org CC: linux-...@vger.kernel.org CC: linux-r...@vger.kernel.org CC: linux-s...@vger.kernel.org CC: Manu Abraham <abraham.m...@gmail.com> CC: Mark Allyn <mark.a.al...@intel.com> CC: Mikael Starvik <star...@axis.com> CC: Mike Marciniszyn <infinip...@intel.com> CC: Naren Sankar <nsan...@broadcom.com> CC: Paolo Bonzini <pbonz...@redhat.com> CC: Peng Tao <tao.p...@emc.com> CC: Roland Dreier <rol...@kernel.org> CC: Sage Weil <s...@inktank.com> CC: Scott Davilla <davi...@4pi.com> CC: Timur Tabi <ti...@freescale.com> CC: Tomi Valkeinen <tomi.valkei...@ti.com> CC: Tony Luck <tony.l...@intel.com> CC: Trond Myklebust <trond.mykleb...@netapp.com> _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel