[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <377e2597-fc15-473d-a191-15281c6c4149@web.de>
Date: Tue, 8 Apr 2025 13:11:56 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: Cindy Lu <lulu@...hat.com>, virtualization@...ts.linux-foundation.org,
netdev@...r.kernel.org
Cc: LKML <linux-kernel@...r.kernel.org>, Jason Wang <jasowang@...hat.com>,
"Michael S. Tsirkin" <mst@...hat.com>,
Mike Christie <michael.christie@...cle.com>,
Stefano Garzarella <sgarzare@...hat.com>
Subject: Re: [PATCH v8 3/8] vhost: Add the cgroup related function
…
> +++ b/drivers/vhost/vhost.c
…
> +static int vhost_attach_task_to_cgroups(struct vhost_worker *worker)
> +{
…
> + vhost_worker_queue(worker, &attach.work);
> +
> + mutex_lock(&worker->mutex);
…
> + mutex_unlock(&worker->mutex);
> +
> + return attach.ret;
> +}
…
Under which circumstances would you become interested to apply a statement
like “guard(mutex)(&worker->mutex);”?
https://elixir.bootlin.com/linux/v6.14-rc6/source/include/linux/mutex.h#L201
Regards,
Markus
Powered by blists - more mailing lists