# Re: \[PATCH\] vhost-net: Acquire device lock when releasing device

- From: Michael S. Tsirkin \<mst@redhat.com\>
- Date: 2011-11-27 16:48:41 
- List: virtualization
- Page: https://ratatoskr.run/virtualization/2011/11/3792209
- Thread: https://ratatoskr.run/kvm/2011/11/3788530/t.md

```text
On Sat, Nov 26, 2011 at 03:45:03PM -0500, David Miller wrote:
> From: Sasha Levin <redacted>
> Date: Fri, 18 Nov 2011 11:19:42 +0200
> 
> > Device lock should be held when releasing a device, and specifically
> > when calling vhost_dev_cleanup(). Otherwise, RCU complains about it:
>  ...
> > Cc: "Michael S. Tsirkin" <mst@redhat.com>
> > Cc: <redacted>
> > Cc: <redacted>
> > Cc: <redacted>
> > Signed-off-by: Sasha Levin <redacted>
> 
> Michael et al., are you guys going to gather this fix or should I
> apply it directly to thet net tree?
> 
> Thanks.

I think it needs a small tweak before being applied.

-- 
MST
```
