Re: IDE driver with CD-RWs (ide-scsi)

Andrew T. Veliath (andrewtv@usa.net)
Thu, 17 Dec 1998 15:31:41 -0500


.........----------------==================----
..--==- Thu, 17 Dec 1998 08:28:59 +0200 (IST),
..--==- Gadi Oxman (GO) mentioned:

GO) Andrew, This patch implements the original intention of the
GO) code, which was never actually completely implemented (i.e. that
GO) echo "driver_name"
)) /proc/ide/hdx/driver would really allow us to switch between
GO) ide-cd/ide-tape and ide-scsi in run-time).

GO) The major problem is that while the SCSI subsystem is using the
GO) drive, we must hold DRIVER(drive)->busy, or the IDE subsystem
GO) will be free to just unlink the ide-scsi driver from below the
GO) SCSI subsystem even if it is currently in use.

GO) That's the reason for the DRIVER(drive)->busy++ in
GO) idescsi_setup(), and performing DRIVER(driver)->busy-- only in
GO) idescsi_release() in the original code.

This is true, and I was aware of that. However at least with the
changes to ide.c and ide-proc.c one can actually use other ide-scsi
and ide-cdrom together, before loading the ide-scsi module.

--
Andrew  	When speculation has done its worst, two plus two still equals
		four. -- S. Johnson

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/