[ Article reposted from alphanet.ml.linux.scsi ]
[ Author was Marc SCHAEFER <[EMAIL PROTECTED]> ]
[ Posted on 26 May 1999 14:50:59 +0200 ]
Marc SCHAEFER <[EMAIL PROTECTED]> wrote:
> Replacing scsi_do_cmd() by a direct low-level queuing (using
> hostt->queuecommand()) looks to ``work'' (at least not crash).
> Is it because Scsi_Cmnd is badly initialized ? Or because
> you can't call SCSI queuing from within networking ? (ARP
> is running at that point, and I assume this runs not in
> a process context).
It looks like the proper way to do that was to use scsi_allocate_device()
and scsi_release_device(). Using that, now scsi_do_cmd() works and you can send
IP packets with 2.2.9.
The patch is at:
http://www-internal.alphanet.ch/archives/local/alphanet/linux/drivers/scsi/ip-over-SCSI-2.2.9-0.0.tar.bz2
Note that at this time I have no hardware to test the target side.
> However, something else I am a little puzzled with is the fact
> that when drivers/net/scsinet.c has control again, it frees the
> network buffer. However, NOTHING guarantees that the I/O has
Similarly, I don't really think you can call scsi_do_cmd() or
scsi_allocate_device() (which returns a SCSI Command) without
a context. Any comment on this ?
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]