Subject: CVS commit: src/sys
To: None <>
From: YAMAMOTO Takashi <>
List: source-changes
Date: 10/31/2005 14:36:41
Module Name:	src
Committed By:	yamt
Date:		Mon Oct 31 14:36:41 UTC 2005

Modified Files:
	src/sys/dev/scsipi: scsipi_ioctl.c
	src/sys/kern: kern_physio.c

Log Message:
fix ioctl problems after the recent physio changes
in some drivers including wd and scsi.

- physio: if a caller provided a buf, stick to use it
  because some drivers use it as an identifier.
- sprinkle simple_locks.
- scsistrategy: rather than issueing an async request and
  waiting for its completion, simply issue a sync request.
  the way to wait for the completion had an assumption that
  B_CALL is never used.  it isn't the case after the recent
  physio() changes.

pointed/analyzed/tested by Martin Husemann.

To generate a diff of this commit:
cvs rdiff -r1.52 -r1.53 src/sys/dev/scsipi/scsipi_ioctl.c
cvs rdiff -r1.64 -r1.65 src/sys/kern/kern_physio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.