lkml.org 
[lkml]   [1999]   [Aug]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe:scsi_reset requirement questions
I wrote the comment in scsi_obsolete.
IIRC,
* you must call scsi_done() for every command you receive exactly once
_except_ for the scsi_reset(SYNC)-command itself [i.e. for the structure
passed into scsi_reset()]. If there are any other pending commands in
your queue when you receive a scsi_reset(), then you must call
scsi_done(DID_RESET) for each of them.
* You should not call scsi_done() at all for scsi_reset(SYNC). If you do
it anyway, then nothing will happen :>

Note that the SYNC_RESET-flag in scsi_done() is part of the scsi-command
structure, it is not a host adapter wide setting (The comment is
misleading).

Btw, this is the "old" error handling, I know nothing about the new
error handling (use_new_eh_code==1)

--
Manfred



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.032 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site