Displaying 2 results from an estimated 2 matches for "vdpasim_worker_queue_mm".
2023 Mar 14
1
[PATCH v2 8/8] vdpa_sim: add support for user VA
...0;
> +
> + if (mm_work->bind) {
> + kthread_use_mm(mm_work->mm);
> + //TODO: should we attach the cgroup of the mm owner?
> + } else {
> + kthread_unuse_mm(mm_work->mm);
> + }
> +}
> +
> +static void vdpasim_worker_queue_mm(struct vdpasim *vdpasim,
> + struct vdpasim_mm_work *mm_work)
> +{
Nit: we need to tweak the name as it does flush besides queuing the work.
> + struct kthread_work *work = &mm_work->work;
> +
> + kthread_init_work(work, vdpasim_...
2023 Mar 02
8
[PATCH v2 0/8] vdpa_sim: add support for user VA
v2:
- rebased on Linus' tree, commit ae3419fbac84 ("vc_screen: don't clobber
return value in vcs_read")
- removed `struct task_struct *owner` param (unused for now, maybe
?useful to support cgroups) [Jason]
- add unbind_mm callback [Jason]
- call the new unbind_mm callback during the release [Jason]
- avoid to call bind_mm callback after the reset, since the device
?is not