diff options
author | tegge <tegge@FreeBSD.org> | 1997-06-25 19:07:43 +0000 |
---|---|---|
committer | tegge <tegge@FreeBSD.org> | 1997-06-25 19:07:43 +0000 |
commit | 988f978710326fc294e3ebe6b7231a5b2807c6f8 (patch) | |
tree | ab7e9ccf1be3e96bf94b4abd5d5faf132b743dd1 /usr.sbin/dev_mkdb | |
parent | 228f6410f312edf048c05ed76a7d84d3d954a339 (diff) | |
download | FreeBSD-src-988f978710326fc294e3ebe6b7231a5b2807c6f8.zip FreeBSD-src-988f978710326fc294e3ebe6b7231a5b2807c6f8.tar.gz |
Introduce an advisory exclusive lock on the scsi link structure.
Change sd_open, sd_close and sd_ioctl to use this lock to ensure
serialization of some critical operations, thus avoiding some
race conditions. Ideas picked from NetBSD (ccd and sd devices).
This fixes one of the problems noted in PR kern/3688.
Reviewed by: "Justin T. Gibbs" <gibbs@plutotech.com>
Diffstat (limited to 'usr.sbin/dev_mkdb')
0 files changed, 0 insertions, 0 deletions