Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
a11be42a
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 2 年 前同步成功
通知
173
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
a11be42a
编写于
3月 12, 2017
作者:
J
James Bottomley
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'mkp-scsi/4.11/scsi-fixes' into fixes
上级
e2a3a673
85e8a239
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
18 addition
and
10 deletion
+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
未找到文件。
drivers/scsi/lpfc/lpfc_init.c
浏览文件 @
a11be42a
...
@@ -12059,6 +12059,7 @@ static struct pci_driver lpfc_driver = {
...
@@ -12059,6 +12059,7 @@ static struct pci_driver lpfc_driver = {
.
id_table
=
lpfc_id_table
,
.
id_table
=
lpfc_id_table
,
.
probe
=
lpfc_pci_probe_one
,
.
probe
=
lpfc_pci_probe_one
,
.
remove
=
lpfc_pci_remove_one
,
.
remove
=
lpfc_pci_remove_one
,
.
shutdown
=
lpfc_pci_remove_one
,
.
suspend
=
lpfc_pci_suspend_one
,
.
suspend
=
lpfc_pci_suspend_one
,
.
resume
=
lpfc_pci_resume_one
,
.
resume
=
lpfc_pci_resume_one
,
.
err_handler
=
&
lpfc_err_handler
,
.
err_handler
=
&
lpfc_err_handler
,
...
...
drivers/scsi/storvsc_drv.c
浏览文件 @
a11be42a
...
@@ -400,8 +400,6 @@ MODULE_PARM_DESC(storvsc_vcpus_per_sub_channel, "Ratio of VCPUs to subchannels")
...
@@ -400,8 +400,6 @@ MODULE_PARM_DESC(storvsc_vcpus_per_sub_channel, "Ratio of VCPUs to subchannels")
*/
*/
static
int
storvsc_timeout
=
180
;
static
int
storvsc_timeout
=
180
;
static
int
msft_blist_flags
=
BLIST_TRY_VPD_PAGES
;
#if IS_ENABLED(CONFIG_SCSI_FC_ATTRS)
#if IS_ENABLED(CONFIG_SCSI_FC_ATTRS)
static
struct
scsi_transport_template
*
fc_transport_template
;
static
struct
scsi_transport_template
*
fc_transport_template
;
#endif
#endif
...
@@ -1383,6 +1381,22 @@ static int storvsc_do_io(struct hv_device *device,
...
@@ -1383,6 +1381,22 @@ static int storvsc_do_io(struct hv_device *device,
return
ret
;
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
)
static
int
storvsc_device_configure
(
struct
scsi_device
*
sdevice
)
{
{
...
@@ -1395,14 +1409,6 @@ 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
;
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 host is WIN8 or WIN8 R2, claim conformance to SPC-3
* if the device is a MSFT virtual device. If the host is
* if the device is a MSFT virtual device. If the host is
...
@@ -1661,6 +1667,7 @@ static struct scsi_host_template scsi_driver = {
...
@@ -1661,6 +1667,7 @@ static struct scsi_host_template scsi_driver = {
.
eh_host_reset_handler
=
storvsc_host_reset_handler
,
.
eh_host_reset_handler
=
storvsc_host_reset_handler
,
.
proc_name
=
"storvsc_host"
,
.
proc_name
=
"storvsc_host"
,
.
eh_timed_out
=
storvsc_eh_timed_out
,
.
eh_timed_out
=
storvsc_eh_timed_out
,
.
slave_alloc
=
storvsc_device_alloc
,
.
slave_configure
=
storvsc_device_configure
,
.
slave_configure
=
storvsc_device_configure
,
.
cmd_per_lun
=
255
,
.
cmd_per_lun
=
255
,
.
this_id
=
-
1
,
.
this_id
=
-
1
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录