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
nexedi
linux
Commits
d30a24be
Commit
d30a24be
authored
Feb 05, 2003
by
Christoph Hellwig
Committed by
Christoph Hellwig
Feb 05, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SCSI] Remove host_active
It isn't used anywhere anymore
parent
9b300b14
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
17 deletions
+13
-17
drivers/scsi/hosts.c
drivers/scsi/hosts.c
+0
-1
drivers/scsi/hosts.h
drivers/scsi/hosts.h
+0
-1
drivers/scsi/scsi.c
drivers/scsi/scsi.c
+5
-5
drivers/scsi/scsi_error.c
drivers/scsi/scsi_error.c
+7
-8
drivers/scsi/scsi_proc.c
drivers/scsi/scsi_proc.c
+1
-2
No files found.
drivers/scsi/hosts.c
View file @
d30a24be
...
...
@@ -392,7 +392,6 @@ struct Scsi_Host * scsi_register(Scsi_Host_Template *shost_tp, int xtr_bytes)
spin_lock_init
(
&
shost
->
default_lock
);
scsi_assign_lock
(
shost
,
&
shost
->
default_lock
);
atomic_set
(
&
shost
->
host_active
,
0
);
INIT_LIST_HEAD
(
&
shost
->
my_devices
);
init_waitqueue_head
(
&
shost
->
host_wait
);
...
...
drivers/scsi/hosts.h
View file @
d30a24be
...
...
@@ -396,7 +396,6 @@ struct Scsi_Host
unsigned
int
eh_kill
:
1
;
/* set when killing the eh thread */
wait_queue_head_t
host_wait
;
Scsi_Host_Template
*
hostt
;
atomic_t
host_active
;
/* commands checked out */
volatile
unsigned
short
host_busy
;
/* commands actually active on low-level */
volatile
unsigned
short
host_failed
;
/* commands that failed. */
...
...
drivers/scsi/scsi.c
View file @
d30a24be
...
...
@@ -994,11 +994,11 @@ static void scsi_softirq(struct softirq_action *h)
* Here we have a fatal error of some sort.
* Turn it over to the error handler.
*/
SCSI_LOG_MLCOMPLETE
(
3
,
printk
(
"Command failed %p %x active=%d busy=%d failed=%d
\n
"
,
SCpnt
,
SCpnt
->
result
,
atomic_read
(
&
SCpnt
->
device
->
host
->
host_active
)
,
SCpnt
->
device
->
host
->
host_busy
,
SCpnt
->
device
->
host
->
host_failed
));
SCSI_LOG_MLCOMPLETE
(
3
,
printk
(
"Command failed %p %x busy=%d failed=%d
\n
"
,
SCpnt
,
SCpnt
->
result
,
SCpnt
->
device
->
host
->
host_busy
,
SCpnt
->
device
->
host
->
host_failed
));
/*
* Dump the sense information too.
...
...
drivers/scsi/scsi_error.c
View file @
d30a24be
...
...
@@ -131,23 +131,22 @@ int scsi_delete_timer(Scsi_Cmnd *scmd)
**/
void
scsi_times_out
(
Scsi_Cmnd
*
scmd
)
{
struct
Scsi_Host
*
shost
=
scmd
->
device
->
host
;
/* Set the serial_number_at_timeout to the current serial_number */
scmd
->
serial_number_at_timeout
=
scmd
->
serial_number
;
scsi_eh_eflags_set
(
scmd
,
SCSI_EH_CMD_TIMEOUT
|
SCSI_EH_CMD_ERR
);
if
(
scmd
->
device
->
host
->
eh_wait
==
NULL
)
{
if
(
unlikely
(
shost
->
eh_wait
==
NULL
)
)
{
panic
(
"Error handler thread not present at %p %p %s %d"
,
scmd
,
s
cmd
->
device
->
host
,
__FILE__
,
__LINE__
);
scmd
,
shost
,
__FILE__
,
__LINE__
);
}
scsi_host_failed_inc_and_test
(
s
cmd
->
device
->
host
);
scsi_host_failed_inc_and_test
(
shost
);
SCSI_LOG_TIMEOUT
(
3
,
printk
(
"Command timed out active=%d busy=%d "
" failed=%d
\n
"
,
atomic_read
(
&
scmd
->
device
->
host
->
host_active
),
scmd
->
device
->
host
->
host_busy
,
scmd
->
device
->
host
->
host_failed
));
SCSI_LOG_TIMEOUT
(
3
,
printk
(
"Command timed out busy=%d failed=%d
\n
"
,
shost
->
host_busy
,
shost
->
host_failed
));
}
/**
...
...
drivers/scsi/scsi_proc.c
View file @
d30a24be
...
...
@@ -345,10 +345,9 @@ static void scsi_dump_status(int level)
i
=
0
;
for
(
shpnt
=
scsi_host_get_next
(
NULL
);
shpnt
;
shpnt
=
scsi_host_get_next
(
shpnt
))
{
printk
(
KERN_INFO
" %d %d
%d
: %d %d
\n
"
,
printk
(
KERN_INFO
" %d %d : %d %d
\n
"
,
shpnt
->
host_failed
,
shpnt
->
host_busy
,
atomic_read
(
&
shpnt
->
host_active
),
shpnt
->
host_blocked
,
shpnt
->
host_self_blocked
);
}
...
...
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