From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kara Subject: [PATCH 0/26] get_user_pages() cleanup Date: Wed, 2 Oct 2013 16:27:41 +0200 Message-ID: <1380724087-13927-1-git-send-email-jack@suse.cz> Return-path: Sender: owner-linux-aio@kvack.org To: LKML Cc: linux-mm@kvack.org, Jan Kara , Alexander Viro , Andreas Dilger , Andy Walls , Arnd Bergmann , Benjamin LaHaise , ceph-devel@vger.kernel.org, Dan Williams , David Airlie , dri-devel@lists.freedesktop.org, Gleb Natapov , Greg Kroah-Hartman , hpdd-discuss@lists.01.org, Jarod Wilson , Jayant Mangalampalli , Jean-Christophe Plagniol-Villard , Jesper Nilsson , Kai Makisara , kvm@vger.kernel.org, Laurent Pinchart , linux-aio@kvack.org, linux-cris-kernel@axis.com, linux-fbdev@vger.kernel.org, linux-fsdevel@vger. List-Id: linux-rdma@vger.kernel.org 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 CC: Andreas Dilger CC: Andy Walls CC: Arnd Bergmann CC: Benjamin LaHaise CC: ceph-devel@vger.kernel.org CC: Dan Williams CC: David Airlie CC: dri-devel@lists.freedesktop.org CC: Gleb Natapov CC: Greg Kroah-Hartman CC: hpdd-discuss@lists.01.org CC: Jarod Wilson CC: Jayant Mangalampalli CC: Jean-Christophe Plagniol-Villard CC: Jesper Nilsson CC: Kai Makisara CC: kvm@vger.kernel.org CC: Laurent Pinchart CC: linux-aio@kvack.org CC: linux-cris-kernel@axis.com CC: linux-fbdev@vger.kernel.org CC: linux-fsdevel@vger.kernel.org CC: linux-ia64@vger.kernel.org CC: linux-media@vger.kernel.org CC: linux-nfs@vger.kernel.org CC: linux-rdma@vger.kernel.org CC: linux-scsi@vger.kernel.org CC: Manu Abraham CC: Mark Allyn CC: Mikael Starvik CC: Mike Marciniszyn CC: Naren Sankar CC: Paolo Bonzini CC: Peng Tao CC: Roland Dreier CC: Sage Weil CC: Scott Davilla CC: Timur Tabi CC: Tomi Valkeinen CC: Tony Luck CC: Trond Myklebust -- To unsubscribe, send a message with 'unsubscribe linux-aio' in the body to majordomo@kvack.org. For more info on Linux AIO, see: http://www.kvack.org/aio/ Don't email: aart@kvack.org