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
539294b7
Commit
539294b7
authored
Sep 27, 2016
by
James Bottomley
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'mkp-scsi/4.8/scsi-fixes' into fixes
parents
14a5916e
8d58881b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
5 deletions
+4
-5
drivers/scsi/hosts.c
drivers/scsi/hosts.c
+2
-0
drivers/scsi/scsi.c
drivers/scsi/scsi.c
+0
-1
drivers/scsi/scsi_priv.h
drivers/scsi/scsi_priv.h
+1
-0
include/scsi/scsi_host.h
include/scsi/scsi_host.h
+1
-4
No files found.
drivers/scsi/hosts.c
View file @
539294b7
...
...
@@ -486,6 +486,8 @@ struct Scsi_Host *scsi_host_alloc(struct scsi_host_template *sht, int privsize)
else
shost
->
dma_boundary
=
0xffffffff
;
shost
->
use_blk_mq
=
scsi_use_blk_mq
;
device_initialize
(
&
shost
->
shost_gendev
);
dev_set_name
(
&
shost
->
shost_gendev
,
"host%d"
,
shost
->
host_no
);
shost
->
shost_gendev
.
bus
=
&
scsi_bus_type
;
...
...
drivers/scsi/scsi.c
View file @
539294b7
...
...
@@ -1160,7 +1160,6 @@ bool scsi_use_blk_mq = true;
bool
scsi_use_blk_mq
=
false
;
#endif
module_param_named
(
use_blk_mq
,
scsi_use_blk_mq
,
bool
,
S_IWUSR
|
S_IRUGO
);
EXPORT_SYMBOL_GPL
(
scsi_use_blk_mq
);
static
int
__init
init_scsi
(
void
)
{
...
...
drivers/scsi/scsi_priv.h
View file @
539294b7
...
...
@@ -29,6 +29,7 @@ extern int scsi_init_hosts(void);
extern
void
scsi_exit_hosts
(
void
);
/* scsi.c */
extern
bool
scsi_use_blk_mq
;
extern
int
scsi_setup_command_freelist
(
struct
Scsi_Host
*
shost
);
extern
void
scsi_destroy_command_freelist
(
struct
Scsi_Host
*
shost
);
#ifdef CONFIG_SCSI_LOGGING
...
...
include/scsi/scsi_host.h
View file @
539294b7
...
...
@@ -771,12 +771,9 @@ static inline int scsi_host_in_recovery(struct Scsi_Host *shost)
shost
->
tmf_in_progress
;
}
extern
bool
scsi_use_blk_mq
;
static
inline
bool
shost_use_blk_mq
(
struct
Scsi_Host
*
shost
)
{
return
scsi_use_blk_mq
;
return
shost
->
use_blk_mq
;
}
extern
int
scsi_queue_work
(
struct
Scsi_Host
*
,
struct
work_struct
*
);
...
...
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