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
64b33130
Commit
64b33130
authored
Jun 09, 2002
by
James Bottomley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SCSI 53c700] bux fix in tag starvation, cosmetic cleanup of set_depth
parent
600b2668
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
drivers/scsi/53c700.c
drivers/scsi/53c700.c
+10
-4
No files found.
drivers/scsi/53c700.c
View file @
64b33130
...
...
@@ -691,15 +691,17 @@ NCR_700_scsi_done(struct NCR_700_Host_Parameters *hostdata,
}
free_slot
(
slot
,
hostdata
);
SCp
->
host_scribble
=
NULL
;
SCp
->
result
=
result
;
SCp
->
scsi_done
(
SCp
);
#ifdef NCR_700_DEBUG
if
(
NCR_700_get_depth
(
SCp
->
device
)
==
0
||
NCR_700_get_depth
(
SCp
->
device
)
>
NCR_700_MAX_TAGS
)
printk
(
KERN_ERR
"Invalid depth in NCR_700_scsi_done(): %d
\n
"
,
NCR_700_get_depth
(
SCp
->
device
));
#endif
/* NCR_700_DEBUG */
NCR_700_set_depth
(
SCp
->
device
,
NCR_700_get_depth
(
SCp
->
device
)
-
1
);
SCp
->
host_scribble
=
NULL
;
SCp
->
result
=
result
;
SCp
->
scsi_done
(
SCp
);
}
else
{
printk
(
KERN_ERR
"53c700: SCSI DONE HAS NULL SCp
\n
"
);
}
...
...
@@ -1895,6 +1897,10 @@ NCR_700_queuecommand(Scsi_Cmnd *SCp, void (*done)(Scsi_Cmnd *))
printk
(
KERN_WARNING
"scsi%d (%d:%d) Target is suffering from tag starvation.
\n
"
,
SCp
->
host
->
host_no
,
SCp
->
target
,
SCp
->
lun
);
NCR_700_set_flag
(
SCp
->
device
,
NCR_700_DEV_TAG_STARVATION_WARNED
);
}
/* Release the slot and ajust the depth before refusing
* the command */
free_slot
(
slot
,
hostdata
);
NCR_700_set_depth
(
SCp
->
device
,
NCR_700_get_depth
(
SCp
->
device
)
-
1
);
return
1
;
}
slot
->
tag
=
SCp
->
device
->
current_tag
++
;
...
...
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