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
56660d5e
Commit
56660d5e
authored
Jan 19, 2004
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://linux-scsi.bkbits.net/scsi-for-linus-2.6
into home.osdl.org:/home/torvalds/v2.5/linux
parents
dfb754ee
6c4b9b99
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
134 additions
and
79 deletions
+134
-79
drivers/message/fusion/mptbase.h
drivers/message/fusion/mptbase.h
+2
-2
drivers/message/fusion/mptscsih.c
drivers/message/fusion/mptscsih.c
+3
-1
drivers/scsi/aha152x.c
drivers/scsi/aha152x.c
+2
-0
drivers/scsi/qla1280.c
drivers/scsi/qla1280.c
+89
-44
drivers/scsi/qla1280.h
drivers/scsi/qla1280.h
+13
-10
drivers/scsi/qla2xxx/qla_def.h
drivers/scsi/qla2xxx/qla_def.h
+3
-3
drivers/scsi/qla2xxx/qla_init.c
drivers/scsi/qla2xxx/qla_init.c
+2
-0
drivers/scsi/scsi_error.c
drivers/scsi/scsi_error.c
+13
-15
drivers/scsi/scsi_sysfs.c
drivers/scsi/scsi_sysfs.c
+7
-4
No files found.
drivers/message/fusion/mptbase.h
View file @
56660d5e
...
...
@@ -80,8 +80,8 @@
#define COPYRIGHT "Copyright (c) 1999-2003 " MODULEAUTHOR
#endif
#define MPT_LINUX_VERSION_COMMON "2.05.00.0
5
"
#define MPT_LINUX_PACKAGE_NAME "@(#)mptlinux-2.05.00.0
5
"
#define MPT_LINUX_VERSION_COMMON "2.05.00.0
6
"
#define MPT_LINUX_PACKAGE_NAME "@(#)mptlinux-2.05.00.0
6
"
#define WHAT_MAGIC_STRING "@" "(" "#" ")"
#define show_mptmod_ver(s,ver) \
...
...
drivers/message/fusion/mptscsih.c
View file @
56660d5e
...
...
@@ -1231,7 +1231,9 @@ mptscsih_initChainBuffers (MPT_SCSI_HOST *hd, int init)
}
else
{
mem
=
(
u8
*
)
hd
->
ReqToChain
;
}
memset
(
mem
,
0xFF
,
sz
);
/* memset(mem, 0xFF, sz); */
for
(
ii
=
0
;
ii
<
hd
->
ioc
->
req_depth
;
ii
++
)
hd
->
ReqToChain
[
ii
]
=
MPT_HOST_NO_CHAIN
;
/* ChainToChain size must equal the total number
...
...
drivers/scsi/aha152x.c
View file @
56660d5e
...
...
@@ -3914,5 +3914,7 @@ static Scsi_Host_Template aha152x_driver_template = {
.
use_clustering
=
DISABLE_CLUSTERING
,
};
#ifndef PCMCIA
module_init
(
aha152x_init
);
module_exit
(
aha152x_exit
);
#endif
drivers/scsi/qla1280.c
View file @
56660d5e
This diff is collapsed.
Click to expand it.
drivers/scsi/qla1280.h
View file @
56660d5e
...
...
@@ -309,16 +309,19 @@ struct nvram {
}
cntr_flags_1
;
/* 5 */
struct
{
uint16_t
boot_lun_number
:
5
;
uint16_t
scsi_bus_number
:
1
;
uint16_t
unused_6
:
1
;
uint16_t
unused_7
:
1
;
uint16_t
boot_target_number
:
4
;
uint16_t
unused_12
:
1
;
uint16_t
unused_13
:
1
;
uint16_t
unused_14
:
1
;
uint16_t
unused_15
:
1
;
}
cntr_flags_2
;
/* 6, 7 */
uint8_t
boot_lun_number
:
5
;
uint8_t
scsi_bus_number
:
1
;
uint8_t
unused_6
:
1
;
uint8_t
unused_7
:
1
;
}
cntr_flags_2l
;
/* 7 */
struct
{
uint8_t
boot_target_number
:
4
;
uint8_t
unused_12
:
1
;
uint8_t
unused_13
:
1
;
uint8_t
unused_14
:
1
;
uint8_t
unused_15
:
1
;
}
cntr_flags_2h
;
/* 8 */
uint16_t
unused_8
;
/* 8, 9 */
uint16_t
unused_10
;
/* 10, 11 */
...
...
drivers/scsi/qla2xxx/qla_def.h
View file @
56660d5e
...
...
@@ -1135,8 +1135,8 @@ typedef union {
uint16_t
extended
;
struct
{
uint8_t
reserved
;
uint8_t
standard
;
;
};
uint8_t
standard
;
}
id
;
}
target_id_t
;
#define SET_TARGET_ID(ha, to, from) \
...
...
@@ -1144,7 +1144,7 @@ do { \
if (HAS_EXTENDED_IDS(ha)) \
to.extended = cpu_to_le16(from); \
else \
to.standard = (uint8_t)from; \
to.
id.
standard = (uint8_t)from; \
} while (0)
/*
...
...
drivers/scsi/qla2xxx/qla_init.c
View file @
56660d5e
...
...
@@ -1592,6 +1592,8 @@ qla2x00_configure_loop(scsi_qla_host_t *ha)
if
(
!
atomic_read
(
&
ha
->
loop_down_timer
)
&&
!
(
test_bit
(
LOOP_RESYNC_NEEDED
,
&
ha
->
dpc_flags
)))
{
qla2x00_config_os
(
ha
);
/* If we found all devices then go ready */
if
(
!
(
test_bit
(
LOGIN_RETRY_NEEDED
,
&
ha
->
dpc_flags
)))
{
atomic_set
(
&
ha
->
loop_state
,
LOOP_READY
);
...
...
drivers/scsi/scsi_error.c
View file @
56660d5e
...
...
@@ -1420,23 +1420,21 @@ static void scsi_eh_flush_done_q(struct list_head *done_q)
list_for_each_safe
(
lh
,
lh_sf
,
done_q
)
{
scmd
=
list_entry
(
lh
,
struct
scsi_cmnd
,
eh_entry
);
list_del_init
(
lh
);
if
(
!
scmd
->
device
->
online
)
{
scmd
->
result
|=
(
DRIVER_TIMEOUT
<<
24
);
}
else
{
if
(
++
scmd
->
retries
<
scmd
->
allowed
)
{
SCSI_LOG_ERROR_RECOVERY
(
3
,
printk
(
"%s: flush retry"
" cmd: %p
\n
"
,
current
->
comm
,
scmd
));
if
(
scmd
->
device
->
online
&&
(
++
scmd
->
retries
<
scmd
->
allowed
))
{
SCSI_LOG_ERROR_RECOVERY
(
3
,
printk
(
"%s: flush"
" retry cmd: %p
\n
"
,
current
->
comm
,
scmd
));
scsi_queue_insert
(
scmd
,
SCSI_MLQUEUE_EH_RETRY
);
continue
;
}
}
else
{
if
(
!
scmd
->
result
)
scmd
->
result
|=
(
DRIVER_TIMEOUT
<<
24
);
SCSI_LOG_ERROR_RECOVERY
(
3
,
printk
(
"%s: flush finish"
" cmd: %p
\n
"
,
current
->
comm
,
scmd
));
scsi_finish_command
(
scmd
);
}
SCSI_LOG_ERROR_RECOVERY
(
3
,
printk
(
"%s: flush finish"
" cmd: %p
\n
"
,
current
->
comm
,
scmd
));
scsi_finish_command
(
scmd
);
}
}
...
...
drivers/scsi/scsi_sysfs.c
View file @
56660d5e
...
...
@@ -361,7 +361,6 @@ int scsi_sysfs_add_sdev(struct scsi_device *sdev)
if
(
error
)
{
printk
(
KERN_INFO
"error 2
\n
"
);
goto
clean_device
;
return
error
;
}
get_device
(
&
sdev
->
sdev_gendev
);
...
...
@@ -370,8 +369,10 @@ int scsi_sysfs_add_sdev(struct scsi_device *sdev)
for
(
i
=
0
;
sdev
->
host
->
hostt
->
sdev_attrs
[
i
];
i
++
)
{
error
=
attr_add
(
&
sdev
->
sdev_gendev
,
sdev
->
host
->
hostt
->
sdev_attrs
[
i
]);
if
(
error
)
if
(
error
)
{
scsi_remove_device
(
sdev
);
goto
out
;
}
}
}
...
...
@@ -380,11 +381,14 @@ int scsi_sysfs_add_sdev(struct scsi_device *sdev)
scsi_sysfs_sdev_attrs
[
i
]))
{
error
=
device_create_file
(
&
sdev
->
sdev_gendev
,
scsi_sysfs_sdev_attrs
[
i
]);
if
(
error
)
if
(
error
)
{
scsi_remove_device
(
sdev
);
goto
out
;
}
}
}
out:
return
error
;
clean_device:
...
...
@@ -394,7 +398,6 @@ int scsi_sysfs_add_sdev(struct scsi_device *sdev)
put_device
(
&
sdev
->
sdev_gendev
);
return
error
;
}
/**
...
...
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