[9397] in linux-scsi channel archive

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

questions on scsi_abort

daemon@ATHENA.MIT.EDU (Oliver Neukum)
Mon Aug 14 20:44:52 2000

Mime-Version: 1.0
Message-Id: <a04320405b5be3a716ad8@[129.187.40.229]>
Date:	Tue, 15 Aug 2000 02:17:38 +0200
To:	linux-scsi@vger.rutgers.edu
From:	Oliver Neukum <Oliver.Neukum@lrz.uni-muenchen.de>
Content-Type: text/plain; charset="us-ascii" ; format="flowed"

Hi list,

as the rules on scsi_abort have changed again, I'd like to ask some questions.

The scsi_abort method is called in task context and may return 
SCSI_ABORT_PENDING. It should not sleep. Is that right ?

Any queued srb should call the callback with DID_ABORT after scsi_abort.
Is that right ?
Can the middle layer cope with the callback called twice ?
Once with DID_OK/DID_ERROR and a second time with DID_ABORT.
There is a race in the driver that I cannot avoid causing this.

Is scsi_abort required to leave the device in a sane state ?

	TIA
		Oliver

-
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