[7158] in linux-scsi channel archive

home help back first fref pref prev next nref lref last post

Re: Fixing the SCSI layer

daemon@ATHENA.MIT.EDU (Alan Cox)
Mon Sep 6 05:59:44 1999

To:     tad-m2n@omoikane.co.jp
Date:   Mon, 6 Sep 1999 10:40:50 +0100 (BST)
Cc:     groudier@club-internet.fr, alan@lxorguk.ukuu.org.uk,
        linux-scsi@vger.rutgers.edu
In-Reply-To: <14291.11926.808121.68187Y@moran.omoikane.co.jp> from "tad-m2n@omoikane.co.jp" at Sep 6, 99 12:01:42 pm
From:   Alan Cox <alan@lxorguk.ukuu.org.uk>

> Oh, sorry, I wanted to picture : 

This still seems backwards. It should be going


	[ll_rw_blk]	[sg]
           +-------------+
                  |
            Card Driver
              (calls)

	[ SCSI Libraries ]


The card driver should have a library of support routines, not an immovable
layer of glue above it. For a simple dumb card with the 2.3.17 ll_rw_blk
scatter/gather features its likely to be doing something conceptually like


	while((cmd=request_to_scsi(req, ISA_BOUNCE))!=NULL)
	{
		[issue command to hardware]
		add_timer(..) for abort/reset
	}

Smarter cards might want to use the queueing in the library, others may not
but control belongs card level. 

Anyway all Im going to do is clean up the existing code.



-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.rutgers.edu

home help back first fref pref prev next nref lref last post