]> git.baikalelectronics.ru Git - kernel.git/commit
ia64/err-inject: Use get_user_pages_fast()
authorDavidlohr Bueso <dave@stgolabs.net>
Mon, 22 Jan 2018 17:21:37 +0000 (09:21 -0800)
committerTony Luck <tony.luck@intel.com>
Mon, 5 Mar 2018 22:43:45 +0000 (14:43 -0800)
commit083972db635f6f2c8554874697b68e43d9a583be
tree459e3c517dfe66d0058a41106092dbfd957d3abe
parent44ecd6c0196d15632977763babffa1deddf38be3
ia64/err-inject: Use get_user_pages_fast()

At the point of sysfs callback, the call to gup is
done without mmap_sem (or any lock for that matter).
This is racy. As such, use the get_user_pages_fast()
alternative and safely avoid taking the lock, if possible.

Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/err_inject.c