public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* Help - a question on scsi_debug and mid-layer
@ 2004-06-21 18:53 Lee Xing
  2004-06-21 19:12 ` James Bottomley
  0 siblings, 1 reply; 2+ messages in thread
From: Lee Xing @ 2004-06-21 18:53 UTC (permalink / raw)
  To: linux-scsi; +Cc: Douglas Gilbert

Hi,

I'm playing with scsi_debug (a low-level driver) of lk2.4 and notice that scsi_debug_queuecommand(...) defined in scsi_debug returns sometimes before the SCSI command completes (i.e. before done(cmd) is invoked), and sometimes after done(cmd) is invoked.  Can SCSI mid-layer really handle both cases without any problems, and why?

I assume that before scsi_debug_queuecommand() returns the control to mid-layer, mid-layer has no way to know whether that SCSI command has been successfully queued in low-level driver, therefore scsi_debug should not invoke done(cmd) before completing scsi_debug_queuecommand(...), correct?

Thanks,


T.

Lee Xing
Crossroads Systems, Inc.
(512) 928-7297



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-06-21 19:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-21 18:53 Help - a question on scsi_debug and mid-layer Lee Xing
2004-06-21 19:12 ` James Bottomley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox