Alvaro Karsz
2023-Apr-10 07:09 UTC
[PATCH resend 1/2] vdpa/snet: support getting and setting VQ state
> > In this case, I can just remove the wmb and that's it, right? > > But who or how to prevent the preemption?We use a mutex to protect the control mechanism (snet->ctrl_lock).
Jason Wang
2023-Apr-10 07:26 UTC
[PATCH resend 1/2] vdpa/snet: support getting and setting VQ state
? 2023/4/10 15:09, Alvaro Karsz ??:>>> In this case, I can just remove the wmb and that's it, right? >> But who or how to prevent the preemption? > We use a mutex to protect the control mechanism (snet->ctrl_lock).I meant mutex doesn't prevent the preemption so the process could be migrated to another cpu. Thanks> >