Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
5796aa7b
K
Kernel
项目概览
openeuler
/
Kernel
大约 1 年 前同步成功
通知
5
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
5796aa7b
编写于
11月 02, 2006
作者:
S
Stefan Richter
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ieee1394: sbp2: some conditions in queue_command are unlikely
Signed-off-by:
N
Stefan Richter
<
stefanr@s5r6.in-berlin.de
>
上级
e8ca5668
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
5 addition
and
5 deletion
+5
-5
drivers/ieee1394/sbp2.c
drivers/ieee1394/sbp2.c
+5
-5
未找到文件。
drivers/ieee1394/sbp2.c
浏览文件 @
5796aa7b
...
@@ -1910,12 +1910,12 @@ static int sbp2scsi_queuecommand(struct scsi_cmnd *SCpnt,
...
@@ -1910,12 +1910,12 @@ static int sbp2scsi_queuecommand(struct scsi_cmnd *SCpnt,
struct
sbp2scsi_host_info
*
hi
;
struct
sbp2scsi_host_info
*
hi
;
int
result
=
DID_NO_CONNECT
<<
16
;
int
result
=
DID_NO_CONNECT
<<
16
;
if
(
!
sbp2util_node_is_available
(
scsi_id
))
if
(
unlikely
(
!
sbp2util_node_is_available
(
scsi_id
)
))
goto
done
;
goto
done
;
hi
=
scsi_id
->
hi
;
hi
=
scsi_id
->
hi
;
if
(
!
hi
)
{
if
(
unlikely
(
!
hi
)
)
{
SBP2_ERR
(
"sbp2scsi_host_info is NULL - this is bad!"
);
SBP2_ERR
(
"sbp2scsi_host_info is NULL - this is bad!"
);
goto
done
;
goto
done
;
}
}
...
@@ -1923,7 +1923,7 @@ static int sbp2scsi_queuecommand(struct scsi_cmnd *SCpnt,
...
@@ -1923,7 +1923,7 @@ static int sbp2scsi_queuecommand(struct scsi_cmnd *SCpnt,
/* Multiple units are currently represented to the SCSI core as separate
/* Multiple units are currently represented to the SCSI core as separate
* targets, not as one target with multiple LUs. Therefore return
* targets, not as one target with multiple LUs. Therefore return
* selection time-out to any IO directed at non-zero LUNs. */
* selection time-out to any IO directed at non-zero LUNs. */
if
(
SCpnt
->
device
->
lun
)
if
(
unlikely
(
SCpnt
->
device
->
lun
)
)
goto
done
;
goto
done
;
/* handle the request sense command here (auto-request sense) */
/* handle the request sense command here (auto-request sense) */
...
@@ -1934,7 +1934,7 @@ static int sbp2scsi_queuecommand(struct scsi_cmnd *SCpnt,
...
@@ -1934,7 +1934,7 @@ static int sbp2scsi_queuecommand(struct scsi_cmnd *SCpnt,
return
0
;
return
0
;
}
}
if
(
!
hpsb_node_entry_valid
(
scsi_id
->
ne
))
{
if
(
unlikely
(
!
hpsb_node_entry_valid
(
scsi_id
->
ne
)
))
{
SBP2_ERR
(
"Bus reset in progress - rejecting command"
);
SBP2_ERR
(
"Bus reset in progress - rejecting command"
);
result
=
DID_BUS_BUSY
<<
16
;
result
=
DID_BUS_BUSY
<<
16
;
goto
done
;
goto
done
;
...
@@ -1942,7 +1942,7 @@ static int sbp2scsi_queuecommand(struct scsi_cmnd *SCpnt,
...
@@ -1942,7 +1942,7 @@ static int sbp2scsi_queuecommand(struct scsi_cmnd *SCpnt,
/* Bidirectional commands are not yet implemented,
/* Bidirectional commands are not yet implemented,
* and unknown transfer direction not handled. */
* and unknown transfer direction not handled. */
if
(
SCpnt
->
sc_data_direction
==
DMA_BIDIRECTIONAL
)
{
if
(
unlikely
(
SCpnt
->
sc_data_direction
==
DMA_BIDIRECTIONAL
)
)
{
SBP2_ERR
(
"Cannot handle DMA_BIDIRECTIONAL - rejecting command"
);
SBP2_ERR
(
"Cannot handle DMA_BIDIRECTIONAL - rejecting command"
);
result
=
DID_ERROR
<<
16
;
result
=
DID_ERROR
<<
16
;
goto
done
;
goto
done
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录