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
a11be42a
Commit
a11be42a
authored
Mar 12, 2017
by
James Bottomley
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'mkp-scsi/4.11/scsi-fixes' into fixes
parents
e2a3a673
85e8a239
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
10 deletions
+18
-10
drivers/scsi/lpfc/lpfc_init.c
drivers/scsi/lpfc/lpfc_init.c
+1
-0
drivers/scsi/storvsc_drv.c
drivers/scsi/storvsc_drv.c
+17
-10
No files found.
drivers/scsi/lpfc/lpfc_init.c
View file @
a11be42a
...
...
@@ -12059,6 +12059,7 @@ static struct pci_driver lpfc_driver = {
.
id_table
=
lpfc_id_table
,
.
probe
=
lpfc_pci_probe_one
,
.
remove
=
lpfc_pci_remove_one
,
.
shutdown
=
lpfc_pci_remove_one
,
.
suspend
=
lpfc_pci_suspend_one
,
.
resume
=
lpfc_pci_resume_one
,
.
err_handler
=
&
lpfc_err_handler
,
...
...
drivers/scsi/storvsc_drv.c
View file @
a11be42a
...
...
@@ -400,8 +400,6 @@ MODULE_PARM_DESC(storvsc_vcpus_per_sub_channel, "Ratio of VCPUs to subchannels")
*/
static
int
storvsc_timeout
=
180
;
static
int
msft_blist_flags
=
BLIST_TRY_VPD_PAGES
;
#if IS_ENABLED(CONFIG_SCSI_FC_ATTRS)
static
struct
scsi_transport_template
*
fc_transport_template
;
#endif
...
...
@@ -1383,6 +1381,22 @@ static int storvsc_do_io(struct hv_device *device,
return
ret
;
}
static
int
storvsc_device_alloc
(
struct
scsi_device
*
sdevice
)
{
/*
* Set blist flag to permit the reading of the VPD pages even when
* the target may claim SPC-2 compliance. MSFT targets currently
* claim SPC-2 compliance while they implement post SPC-2 features.
* With this flag we can correctly handle WRITE_SAME_16 issues.
*
* Hypervisor reports SCSI_UNKNOWN type for DVD ROM device but
* still supports REPORT LUN.
*/
sdevice
->
sdev_bflags
=
BLIST_REPORTLUN2
|
BLIST_TRY_VPD_PAGES
;
return
0
;
}
static
int
storvsc_device_configure
(
struct
scsi_device
*
sdevice
)
{
...
...
@@ -1395,14 +1409,6 @@ static int storvsc_device_configure(struct scsi_device *sdevice)
sdevice
->
no_write_same
=
1
;
/*
* Add blist flags to permit the reading of the VPD pages even when
* the target may claim SPC-2 compliance. MSFT targets currently
* claim SPC-2 compliance while they implement post SPC-2 features.
* With this patch we can correctly handle WRITE_SAME_16 issues.
*/
sdevice
->
sdev_bflags
|=
msft_blist_flags
;
/*
* If the host is WIN8 or WIN8 R2, claim conformance to SPC-3
* if the device is a MSFT virtual device. If the host is
...
...
@@ -1661,6 +1667,7 @@ static struct scsi_host_template scsi_driver = {
.
eh_host_reset_handler
=
storvsc_host_reset_handler
,
.
proc_name
=
"storvsc_host"
,
.
eh_timed_out
=
storvsc_eh_timed_out
,
.
slave_alloc
=
storvsc_device_alloc
,
.
slave_configure
=
storvsc_device_configure
,
.
cmd_per_lun
=
255
,
.
this_id
=
-
1
,
...
...
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