v4: vfio_lock_acct() should not fail due to RLIMIT_MEMLOCK if task has CAP_IPC_LOCK capability. Introduced 2nd patch to remove redundancy from vfio_pin_page_external() and fix return value. Please re-review. Thanks! Alex --- Alex Williamson (2): vfio/type1: Remove locked page accounting workqueue vfio/type1: Prune vfio_pin_page_external() drivers/vfio/vfio_iommu_type1.c | 127 ++++++++++++++------------------------- 1 file changed, 46 insertions(+), 81 deletions(-)