[8828] in linux-scsi channel archive

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

Re: aic7xxx.c lock question

daemon@ATHENA.MIT.EDU (Kurt Garloff)
Wed May 17 07:04:29 2000

Date:	Wed, 17 May 2000 12:51:34 +0200
From: Kurt Garloff <garloff@suse.de>
To: "WANG,YIDING (A-SanJose,ex1)" <yiding_wang@agilent.com>
Cc: "'linux_scsi'" <linux-scsi@vger.rutgers.edu>
Message-ID: <20000517125134.E860@garloff.tue.nl>
Mail-Followup-To: "WANG,YIDING (A-SanJose,ex1)" <yiding_wang@agilent.com>,
	"'linux_scsi'" <linux-scsi@vger.rutgers.edu>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-md5;
	protocol="application/pgp-signature"; boundary="SxSZg4s9qMTG5wS5"
In-Reply-To: <D53173D574D6D211945500A0C9E95BEBEE17D6@xsj02.sj.hp.com>; from yiding_wang@agilent.com on Fri, May 12, 2000 at 02:54:57PM -0400


--SxSZg4s9qMTG5wS5
Content-Type: text/plain; charset=us-ascii

On Fri, May 12, 2000 at 02:54:57PM -0400, WANG,YIDING (A-SanJose,ex1) wrote:
> I hope someone can help me on the follwing issue:
> 
> In aic7xxx.c code (also qla1280.h), driver locking is being used as needed
> for critical section protection.  It is defined as DRIVER_LOCK and
> DRIVER_UNLOCK pair.  However, the lock is only being used for LInux 2.1.95
> below.  Questions:
> 
> 1, Why the driver does not do locking for Linux 2.1.95 beyond (except
> spinlock in ISR)?
> 2, Does Linux version beyond 2.1.95 will do the locking automatically by
> just including two header files (spinlock.h, smp.h)?
> 3, If like most linux scsi drivers which not handling lock (except ISR) is
> accepted, does that mean either mutex lock is altomatically handled by Linux
> 2.1.95 and beyond, or simply include "smp.h" and :spinlock.h" will be
> enough?

Because since 2.1.95, the global spinlock io_request_lock is used to lock
the SCSI subsystem. All the locking is done by the mid-layer, before the low
level driver is even called. 
Exception: IRQ, which is directly routed to the driver's IRQ handler.

Regards,
-- 
Kurt Garloff  <garloff@suse.de>                          Eindhoven, NL
GPG key: See mail header, key servers         Linux kernel development
SuSE GmbH, Nuernberg, FRG                               SCSI, Security

--SxSZg4s9qMTG5wS5
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1c- (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE5Inm1xmLh6hyYd04RAU/EAJ4hQIMsQzEqSuIa5Sibahob+3GeLwCffDl+
7naK/RaFV6orvDRyys063yo=
=BMot
-----END PGP SIGNATURE-----

--SxSZg4s9qMTG5wS5--

-
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