diff options
| author | riastradh <riastradh@NetBSD.org> | 2022-03-28 12:44:06 +0000 |
|---|---|---|
| committer | riastradh <riastradh@NetBSD.org> | 2022-03-28 12:44:06 +0000 |
| commit | 65e2e3875598134e7a75d446edd38d0fcb4c982b (patch) | |
| tree | e46f9357d04d598f634d316222c876aaf03c06e9 /sys/dev/raidframe | |
| parent | 18a6ee0a05324579a9898f4c8b8fe5c44374f3aa (diff) | |
uhidev(9): Fix race between uhidev_close and uhidev_intr.
uhidev_intr currently relies on the kernel lock to serialize access
to struct uhidev::sc_state, but if the driver's sc_intr function
sleeps (which it may do, even though this runs is softint context --
it may sleep on an adaptive lock), uhidev_close might return while
the driver's sc_intr function is still in flight.
This avoids that race, and makes progress toward MP-safe uhidev.
Diffstat (limited to 'sys/dev/raidframe')
0 files changed, 0 insertions, 0 deletions
