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
39252446
Commit
39252446
authored
Oct 01, 2002
by
James Bottomley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SCSI] remove debugging from zero depth queue handling
parent
e4f44d56
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
drivers/scsi/hosts.c
drivers/scsi/hosts.c
+0
-3
drivers/scsi/scsi_lib.c
drivers/scsi/scsi_lib.c
+2
-2
No files found.
drivers/scsi/hosts.c
View file @
39252446
...
@@ -211,9 +211,6 @@ struct Scsi_Host * scsi_register(Scsi_Host_Template * tpnt, int j)
...
@@ -211,9 +211,6 @@ struct Scsi_Host * scsi_register(Scsi_Host_Template * tpnt, int j)
retval
->
max_host_blocked
=
tpnt
->
max_host_blocked
?
tpnt
->
max_host_blocked
:
SCSI_DEFAULT_HOST_BLOCKED
;
retval
->
max_host_blocked
=
tpnt
->
max_host_blocked
?
tpnt
->
max_host_blocked
:
SCSI_DEFAULT_HOST_BLOCKED
;
printk
(
"scsi%d: max_host_blocked set to %d
\n
"
,
retval
->
host_no
,
retval
->
max_host_blocked
);
retval
->
host_blocked
=
0
;
retval
->
host_blocked
=
0
;
retval
->
host_self_blocked
=
FALSE
;
retval
->
host_self_blocked
=
FALSE
;
...
...
drivers/scsi/scsi_lib.c
View file @
39252446
...
@@ -757,7 +757,7 @@ void scsi_request_fn(request_queue_t * q)
...
@@ -757,7 +757,7 @@ void scsi_request_fn(request_queue_t * q)
if
(
SHpnt
->
host_busy
==
0
&&
SHpnt
->
host_blocked
)
{
if
(
SHpnt
->
host_busy
==
0
&&
SHpnt
->
host_blocked
)
{
/* unblock after host_blocked iterates to zero */
/* unblock after host_blocked iterates to zero */
if
(
--
SHpnt
->
host_blocked
==
0
)
{
if
(
--
SHpnt
->
host_blocked
==
0
)
{
printk
(
"scsi%d unblocking host at zero depth
\n
"
,
SHpnt
->
host_no
);
SCSI_LOG_MLQUEUE
(
3
,
printk
(
"scsi%d unblocking host at zero depth
\n
"
,
SHpnt
->
host_no
)
);
}
else
{
}
else
{
blk_plug_device
(
q
);
blk_plug_device
(
q
);
break
;
break
;
...
@@ -766,7 +766,7 @@ void scsi_request_fn(request_queue_t * q)
...
@@ -766,7 +766,7 @@ void scsi_request_fn(request_queue_t * q)
if
(
SDpnt
->
device_busy
==
0
&&
SDpnt
->
device_blocked
)
{
if
(
SDpnt
->
device_busy
==
0
&&
SDpnt
->
device_blocked
)
{
/* unblock after device_blocked iterates to zero */
/* unblock after device_blocked iterates to zero */
if
(
--
SDpnt
->
device_blocked
==
0
)
{
if
(
--
SDpnt
->
device_blocked
==
0
)
{
printk
(
"scsi%d (%d:%d) unblocking device at zero depth
\n
"
,
SHpnt
->
host_no
,
SDpnt
->
id
,
SDpnt
->
lun
);
SCSI_LOG_MLQUEUE
(
3
,
printk
(
"scsi%d (%d:%d) unblocking device at zero depth
\n
"
,
SHpnt
->
host_no
,
SDpnt
->
id
,
SDpnt
->
lun
)
);
}
else
{
}
else
{
blk_plug_device
(
q
);
blk_plug_device
(
q
);
break
;
break
;
...
...
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