Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
7990b19d
Commit
7990b19d
authored
Oct 28, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ESP]: Fix abort return values.
parent
5b165f9b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
drivers/scsi/esp.c
drivers/scsi/esp.c
+7
-7
No files found.
drivers/scsi/esp.c
View file @
7990b19d
...
...
@@ -1955,7 +1955,7 @@ int esp_abort(Scsi_Cmnd *SCptr)
esp
->
msgout_ctr
=
0
;
esp_cmd
(
esp
,
ESP_CMD_SATN
);
spin_unlock_irqrestore
(
esp
->
ehost
->
host_lock
,
flags
);
return
S
CSI_ABORT_PENDING
;
return
S
UCCESS
;
}
/* If it is still in the issue queue then we can safely
...
...
@@ -1984,7 +1984,7 @@ int esp_abort(Scsi_Cmnd *SCptr)
ESP_INTSON
(
esp
->
dregs
);
spin_unlock_irqrestore
(
esp
->
ehost
->
host_lock
,
flags
);
return
S
CSI_ABORT_S
UCCESS
;
return
SUCCESS
;
}
}
}
...
...
@@ -1998,20 +1998,20 @@ int esp_abort(Scsi_Cmnd *SCptr)
if
(
don
)
ESP_INTSON
(
esp
->
dregs
);
spin_unlock_irqrestore
(
esp
->
ehost
->
host_lock
,
flags
);
return
SCSI_ABORT_BUSY
;
return
FAILED
;
}
/* It's disconnected, we have to reconnect to re-establish
* the nexus and tell the device to abort. However, we really
* cannot 'reconnect' per se
, therefore we tell the upper layer
*
the safest thing we can. This is, wait a bit, if nothing
*
happens, we are really hung so reset the
bus.
* cannot 'reconnect' per se
. Don't try to be fancy, just
*
indicate failure, which causes our caller to reset the whole
* bus.
*/
if
(
don
)
ESP_INTSON
(
esp
->
dregs
);
spin_unlock_irqrestore
(
esp
->
ehost
->
host_lock
,
flags
);
return
SCSI_ABORT_SNOOZE
;
return
FAILED
;
}
/* We've sent ESP_CMD_RS to the ESP, the interrupt had just
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment