Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
a47fff10
K
kernel_linux
项目概览
OpenHarmony
/
kernel_linux
上一次同步 3 年多
通知
13
Star
8
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kernel_linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
a47fff10
编写于
1月 08, 2017
作者:
J
James Bottomley
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'mkp-scsi/fixes' into fixes
上级
db27edf8
2d1148f0
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
24 addition
and
4 deletion
+24
-4
drivers/scsi/bfa/bfad.c
drivers/scsi/bfa/bfad.c
+3
-3
drivers/scsi/bfa/bfad_drv.h
drivers/scsi/bfa/bfad_drv.h
+1
-1
drivers/scsi/fnic/fnic.h
drivers/scsi/fnic/fnic.h
+1
-0
drivers/scsi/fnic/fnic_scsi.c
drivers/scsi/fnic/fnic_scsi.c
+16
-0
drivers/scsi/snic/snic_main.c
drivers/scsi/snic/snic_main.c
+3
-0
未找到文件。
drivers/scsi/bfa/bfad.c
浏览文件 @
a47fff10
...
...
@@ -64,9 +64,9 @@ int max_rport_logins = BFA_FCS_MAX_RPORT_LOGINS;
u32
bfi_image_cb_size
,
bfi_image_ct_size
,
bfi_image_ct2_size
;
u32
*
bfi_image_cb
,
*
bfi_image_ct
,
*
bfi_image_ct2
;
#define BFAD_FW_FILE_CB "cbfw-3.2.
3.0
.bin"
#define BFAD_FW_FILE_CT "ctfw-3.2.
3.0
.bin"
#define BFAD_FW_FILE_CT2 "ct2fw-3.2.
3.0
.bin"
#define BFAD_FW_FILE_CB "cbfw-3.2.
5.1
.bin"
#define BFAD_FW_FILE_CT "ctfw-3.2.
5.1
.bin"
#define BFAD_FW_FILE_CT2 "ct2fw-3.2.
5.1
.bin"
static
u32
*
bfad_load_fwimg
(
struct
pci_dev
*
pdev
);
static
void
bfad_free_fwimg
(
void
);
...
...
drivers/scsi/bfa/bfad_drv.h
浏览文件 @
a47fff10
...
...
@@ -58,7 +58,7 @@
#ifdef BFA_DRIVER_VERSION
#define BFAD_DRIVER_VERSION BFA_DRIVER_VERSION
#else
#define BFAD_DRIVER_VERSION "3.2.25.
0
"
#define BFAD_DRIVER_VERSION "3.2.25.
1
"
#endif
#define BFAD_PROTO_NAME FCPI_NAME
...
...
drivers/scsi/fnic/fnic.h
浏览文件 @
a47fff10
...
...
@@ -248,6 +248,7 @@ struct fnic {
struct
completion
*
remove_wait
;
/* device remove thread blocks */
atomic_t
in_flight
;
/* io counter */
bool
internal_reset_inprogress
;
u32
_reserved
;
/* fill hole */
unsigned
long
state_flags
;
/* protected by host lock */
enum
fnic_state
state
;
...
...
drivers/scsi/fnic/fnic_scsi.c
浏览文件 @
a47fff10
...
...
@@ -2581,6 +2581,19 @@ int fnic_host_reset(struct scsi_cmnd *sc)
unsigned
long
wait_host_tmo
;
struct
Scsi_Host
*
shost
=
sc
->
device
->
host
;
struct
fc_lport
*
lp
=
shost_priv
(
shost
);
struct
fnic
*
fnic
=
lport_priv
(
lp
);
unsigned
long
flags
;
spin_lock_irqsave
(
&
fnic
->
fnic_lock
,
flags
);
if
(
fnic
->
internal_reset_inprogress
==
0
)
{
fnic
->
internal_reset_inprogress
=
1
;
}
else
{
spin_unlock_irqrestore
(
&
fnic
->
fnic_lock
,
flags
);
FNIC_SCSI_DBG
(
KERN_DEBUG
,
fnic
->
lport
->
host
,
"host reset in progress skipping another host reset
\n
"
);
return
SUCCESS
;
}
spin_unlock_irqrestore
(
&
fnic
->
fnic_lock
,
flags
);
/*
* If fnic_reset is successful, wait for fabric login to complete
...
...
@@ -2601,6 +2614,9 @@ int fnic_host_reset(struct scsi_cmnd *sc)
}
}
spin_lock_irqsave
(
&
fnic
->
fnic_lock
,
flags
);
fnic
->
internal_reset_inprogress
=
0
;
spin_unlock_irqrestore
(
&
fnic
->
fnic_lock
,
flags
);
return
ret
;
}
...
...
drivers/scsi/snic/snic_main.c
浏览文件 @
a47fff10
...
...
@@ -591,6 +591,7 @@ snic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
if
(
!
pool
)
{
SNIC_HOST_ERR
(
shost
,
"dflt sgl pool creation failed
\n
"
);
ret
=
-
ENOMEM
;
goto
err_free_res
;
}
...
...
@@ -601,6 +602,7 @@ snic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
if
(
!
pool
)
{
SNIC_HOST_ERR
(
shost
,
"max sgl pool creation failed
\n
"
);
ret
=
-
ENOMEM
;
goto
err_free_dflt_sgl_pool
;
}
...
...
@@ -611,6 +613,7 @@ snic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
if
(
!
pool
)
{
SNIC_HOST_ERR
(
shost
,
"snic tmreq info pool creation failed.
\n
"
);
ret
=
-
ENOMEM
;
goto
err_free_max_sgl_pool
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录