Date: Wed, 25 Jun 1997 12:07:45 -0700 (PDT) From: Tor Egge <tegge@FreeBSD.ORG> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG Subject: cvs commit: src/sys/scsi scsi_driver.c scsi_driver.h scsiconf.h sd.c Message-ID: <199706251907.MAA26570@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
tegge 1997/06/25 12:07:45 PDT Modified files: sys/scsi scsi_driver.c scsi_driver.h scsiconf.h sd.c Log: 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> Revision Changes Path 1.24 +23 -1 src/sys/scsi/scsi_driver.c 1.12 +3 -1 src/sys/scsi/scsi_driver.h 1.55 +3 -1 src/sys/scsi/scsiconf.h 1.106 +18 -1 src/sys/scsi/sd.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199706251907.MAA26570>