linux_dsm_epyc7002/drivers/misc/mic
Davidlohr Bueso 70f8a3ca68 mm: make mm->pinned_vm an atomic64 counter
Taking a sleeping lock to _only_ increment a variable is quite the
overkill, and pretty much all users do this. Furthermore, some drivers
(ie: infiniband and scif) that need pinned semantics can go to quite
some trouble to actually delay via workqueue (un)accounting for pinned
pages when not possible to acquire it.

By making the counter atomic we no longer need to hold the mmap_sem and
can simply some code around it for pinned_vm users. The counter is 64-bit
such that we need not worry about overflows such as rdma user input
controlled from userspace.

Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Christoph Lameter <cl@linux.com>
Reviewed-by: Daniel Jordan <daniel.m.jordan@oracle.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2019-02-07 12:54:02 -07:00
..
bus misc: mic: Release reference count and memory for VOP device 2018-03-15 18:12:01 +01:00
card misc: remove GENWQE_DEBUGFS_RO() 2018-12-06 15:42:18 +01:00
common
cosm misc: remove GENWQE_DEBUGFS_RO() 2018-12-06 15:42:18 +01:00
cosm_client misc: mic: fix passing the current time 2018-07-07 17:44:52 +02:00
host Char/Misc driver patches for 4.21-rc1 2018-12-28 20:54:57 -08:00
scif mm: make mm->pinned_vm an atomic64 counter 2019-02-07 12:54:02 -07:00
vop virtio: don't allocate vqs when names[i] = NULL 2019-01-14 20:15:19 -05:00
Kconfig
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00