https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263783

--- Comment #40 from Zhenlei Huang <z...@freebsd.org> ---
(In reply to Pierre Pronchery from comment #39)

> panic: _mtx_lock_sleep: recursed on non-recursive mutex

I'm not sure if the following is proper for drivers, but you may give it a try,

```
static int
umb_attach(device_t dev)
{
...
- mtx_init(&sc->sc_mutex, device_get_nameunit(dev), NULL, MTX_DEF);
+ mtx_init(&sc->sc_mutex, device_get_nameunit(dev), NULL, MTX_DEF |
MTX_RECURSE);
...
}
```

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to