xpmem: Make sure vm_range is used under memory_range_lock

Change-Id: I856ee9d401e7dcfd74559bad5b22a69d53a61e2f
This commit is contained in:
Yoshihisa Morizumi
2021-01-08 17:21:44 +09:00
committed by Masamichi Takagi
parent 4ac9dcdccd
commit 5dd989450d
2 changed files with 27 additions and 13 deletions

View File

@ -331,6 +331,7 @@ static void xpmem_ap_deref(struct xpmem_access_permit *ap);
static void xpmem_att_deref(struct xpmem_attachment *att);
static int xpmem_validate_access(struct xpmem_access_permit *, off_t, size_t,
int, unsigned long *);
static int is_remote_vm(struct process_vm *vm);
/*
* Inlines that mark an internal driver structure as being destroyable or not.