tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: D_MPSAFE drivers
coypu%SDF.ORG@localhost writes:
>It appears that many "big name" drivers (wd, nvme) do
>not have d_flags D_MPSAFE, unless I am reading things
>wrong.
Yes, many drivers aren't MPSAFE and need the kernel lock.
The nvme (cdev) driver is just the control channel. While finally
everything should be MPSAFE, it's not that important here.
The ld driver, using nvme as a backend on the other hand is MPSAFE.
This wouldn't help much if the backend code wasn't mpsafe itself,
but since it's not a cdev or bdev, there is no obvious MPSAFE tag.
The sd driver and the scsispi framework is MPSAFE since a few weeks.
However, the backend drivers (e.g. the code for the individual
SCSI controller) mostly aren't. With umass being an exception.
So there is lots of work to do.
--
--
Michael van Elst
Internet: mlelstv%serpens.de@localhost
"A potential Snark may lurk in every tree."
Home |
Main Index |
Thread Index |
Old Index