Date: Sun, 22 Nov 1998 15:44:47 -0800 (PST) From: Kenneth Merry <ken@FreeBSD.ORG> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/sys/cam/scsi scsi_cd.c scsi_ch.c scsi_pass.c scsi_pt.c scsi_sa.c Message-ID: <199811222344.PAA02112@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
ken 1998/11/22 15:44:47 PST
Modified files:
sys/cam/scsi scsi_cd.c scsi_ch.c scsi_pass.c scsi_pt.c
scsi_sa.c
Log:
Fix a few problems that Bruce noticed about a month ago, and fix oup one
other problem.
- Hold onto splsoftcam() in the peripheral driver open routines until we
have locked the periph. This eliminates a race condition.
- Disallow opening the pass driver when securelevel > 1.
- If a user tries to open the pass driver with O_NONBLOCK set, return
EINVAL instead of ENODEV. (noticed by gibbs)
Revision Changes Path
1.9 +9 -3 src/sys/cam/scsi/scsi_cd.c
1.6 +6 -3 src/sys/cam/scsi/scsi_ch.c
1.5 +21 -8 src/sys/cam/scsi/scsi_pass.c
1.4 +6 -3 src/sys/cam/scsi/scsi_pt.c
1.5 +4 -2 src/sys/cam/scsi/scsi_sa.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811222344.PAA02112>
