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
287bda4d
Commit
287bda4d
authored
Oct 22, 2002
by
Doug Ledford
Browse files
Options
Browse Files
Download
Plain Diff
Merge aladin.rdu.redhat.com:/usr/local/home/dledford/bk/scsi
into aladin.rdu.redhat.com:/usr/src/2.5
parents
8521f378
32ec26d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
42 deletions
+13
-42
drivers/message/fusion/mptscsih.c
drivers/message/fusion/mptscsih.c
+10
-31
drivers/message/fusion/mptscsih.h
drivers/message/fusion/mptscsih.h
+3
-11
No files found.
drivers/message/fusion/mptscsih.c
View file @
287bda4d
...
...
@@ -1295,10 +1295,6 @@ mptscsih_detect(Scsi_Host_Template *tpnt)
#endif
sh
->
this_id
=
this
->
pfacts
[
portnum
].
PortSCSIID
;
/* OS entry to allow host drivers to force
* a queue depth on a per device basis.
*/
sh
->
select_queue_depths
=
mptscsih_select_queue_depths
;
/* Required entry.
*/
sh
->
unique_id
=
this
->
id
;
...
...
@@ -3668,37 +3664,20 @@ mptscsih_bios_param(Disk * disk, kdev_t dev, int *ip)
* Called once per device the bus scan. Use it to force the queue_depth
* member to 1 if a device does not support Q tags.
*/
void
mptscsih_s
elect_queue_depths
(
struct
Scsi_Host
*
sh
,
Scsi_Device
*
sdList
)
int
mptscsih_s
lave_attach
(
Scsi_Device
*
device
)
{
struct
scsi_device
*
device
;
VirtDevice
*
pTarget
;
MPT_SCSI_HOST
*
hd
;
int
ii
,
max
;
for
(
device
=
sdList
;
device
!=
NULL
;
device
=
device
->
next
)
{
if
(
device
->
host
!=
sh
)
continue
;
hd
=
(
MPT_SCSI_HOST
*
)
sh
->
hostdata
;
if
(
hd
==
NULL
)
continue
;
if
(
hd
->
Targets
!=
NULL
)
{
if
(
hd
->
is_spi
)
max
=
MPT_MAX_SCSI_DEVICES
;
else
max
=
MPT_MAX_FC_DEVICES
<
256
?
MPT_MAX_FC_DEVICES
:
255
;
for
(
ii
=
0
;
ii
<
max
;
ii
++
)
{
pTarget
=
hd
->
Targets
[
ii
];
if
(
pTarget
&&
!
(
pTarget
->
tflags
&
MPT_TARGET_FLAGS_Q_YES
))
{
device
->
queue_depth
=
1
;
}
}
}
pTarget
=
device
->
hostdata
;
if
(
!
device
->
tagged_supported
||
!
(
pTarget
->
tflags
&
MPT_TARGET_FLAGS_Q_YES
))
{
scsi_adjust_queue_depth
(
device
,
0
,
1
);
}
else
{
scsi_adjust_queue_depth
(
device
,
MSG_SIMPLE_TAG
,
device
->
host
->
can_queue
>>
1
);
}
return
0
;
}
/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
...
...
drivers/message/fusion/mptscsih.h
View file @
287bda4d
...
...
@@ -206,7 +206,7 @@ struct mptscsih_driver_setup
#define x_scsi_dev_reset mptscsih_dev_reset
#define x_scsi_host_reset mptscsih_host_reset
#define x_scsi_bios_param mptscsih_bios_param
#define x_scsi_s
elect_queue_depths mptscsih_select_queue_depths
#define x_scsi_s
lave_attach mptscsih_slave_attach
#define x_scsi_taskmgmt_bh mptscsih_taskmgmt_bh
#define x_scsi_old_abort mptscsih_old_abort
...
...
@@ -234,7 +234,7 @@ extern int x_scsi_bios_param(Disk *, struct block_device *, int *);
#else
extern
int
x_scsi_bios_param
(
Disk
*
,
kdev_t
,
int
*
);
#endif
extern
void
x_scsi_select_queue_depths
(
struct
Scsi_Host
*
,
Scsi_Device
*
);
extern
int
x_scsi_slave_attach
(
Scsi_Device
*
);
extern
void
x_scsi_taskmgmt_bh
(
void
*
);
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,0)
...
...
@@ -248,20 +248,18 @@ extern void x_scsi_taskmgmt_bh(void *);
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,1)
#define MPT_SCSIHOST { \
next: NULL, \
PROC_SCSI_DECL \
name: "MPT SCSI Host", \
detect: x_scsi_detect, \
release: x_scsi_release, \
info: x_scsi_info, \
command: NULL, \
queuecommand: x_scsi_queuecommand, \
eh_strategy_handler: NULL, \
eh_abort_handler: x_scsi_abort, \
eh_device_reset_handler: x_scsi_dev_reset, \
eh_bus_reset_handler: x_scsi_bus_reset, \
eh_host_reset_handler: x_scsi_host_reset, \
bios_param: x_scsi_bios_param, \
slave_attach: x_scsi_slave_attach, \
can_queue: MPT_SCSI_CAN_QUEUE, \
this_id: -1, \
sg_tablesize: MPT_SCSI_SG_DEPTH, \
...
...
@@ -274,19 +272,15 @@ extern void x_scsi_taskmgmt_bh(void *);
#else
/* LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,1) */
#define MPT_SCSIHOST { \
next: NULL, \
PROC_SCSI_DECL \
name: "MPT SCSI Host", \
detect: x_scsi_detect, \
release: x_scsi_release, \
info: x_scsi_info, \
command: NULL, \
queuecommand: x_scsi_queuecommand, \
eh_strategy_handler: NULL, \
eh_abort_handler: x_scsi_abort, \
eh_device_reset_handler: x_scsi_dev_reset, \
eh_bus_reset_handler: x_scsi_bus_reset, \
eh_host_reset_handler: NULL, \
bios_param: x_scsi_bios_param, \
can_queue: MPT_SCSI_CAN_QUEUE, \
this_id: -1, \
...
...
@@ -302,13 +296,11 @@ extern void x_scsi_taskmgmt_bh(void *);
#else
/* MPT_SCSI_USE_NEW_EH */
#define MPT_SCSIHOST { \
next: NULL, \
PROC_SCSI_DECL \
name: "MPT SCSI Host", \
detect: x_scsi_detect, \
release: x_scsi_release, \
info: x_scsi_info, \
command: NULL, \
queuecommand: x_scsi_queuecommand, \
abort: x_scsi_old_abort, \
reset: x_scsi_old_reset, \
...
...
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