Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
fe1b2d54
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
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看板
提交
fe1b2d54
编写于
9月 06, 2005
作者:
C
Christoph Hellwig
提交者:
James Bottomley
9月 06, 2005
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[SCSI] unexport scsi_add_timer/scsi_delete_timer
Signed-off-by:
N
James Bottomley
<
James.Bottomley@SteelEye.com
>
上级
c5478def
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
3 addition
and
46 deletion
+3
-46
Documentation/scsi/scsi_mid_low_api.txt
Documentation/scsi/scsi_mid_low_api.txt
+0
-41
drivers/scsi/scsi_error.c
drivers/scsi/scsi_error.c
+0
-2
drivers/scsi/scsi_priv.h
drivers/scsi/scsi_priv.h
+3
-0
include/scsi/scsi_eh.h
include/scsi/scsi_eh.h
+0
-3
未找到文件。
Documentation/scsi/scsi_mid_low_api.txt
浏览文件 @
fe1b2d54
...
...
@@ -373,13 +373,11 @@ Summary:
scsi_activate_tcq - turn on tag command queueing
scsi_add_device - creates new scsi device (lu) instance
scsi_add_host - perform sysfs registration and SCSI bus scan.
scsi_add_timer - (re-)start timer on a SCSI command.
scsi_adjust_queue_depth - change the queue depth on a SCSI device
scsi_assign_lock - replace default host_lock with given lock
scsi_bios_ptable - return copy of block device's partition table
scsi_block_requests - prevent further commands being queued to given host
scsi_deactivate_tcq - turn off tag command queueing
scsi_delete_timer - cancel timer on a SCSI command.
scsi_host_alloc - return a new scsi_host instance whose refcount==1
scsi_host_get - increments Scsi_Host instance's refcount
scsi_host_put - decrements Scsi_Host instance's refcount (free if 0)
...
...
@@ -457,27 +455,6 @@ struct scsi_device * scsi_add_device(struct Scsi_Host *shost,
int scsi_add_host(struct Scsi_Host *shost, struct device * dev)
/**
* scsi_add_timer - (re-)start timer on a SCSI command.
* @scmd: pointer to scsi command instance
* @timeout: duration of timeout in "jiffies"
* @complete: pointer to function to call if timeout expires
*
* Returns nothing
*
* Might block: no
*
* Notes: Each scsi command has its own timer, and as it is added
* to the queue, we set up the timer. When the command completes,
* we cancel the timer. An LLD can use this function to change
* the existing timeout value.
*
* Defined in: drivers/scsi/scsi_error.c
**/
void scsi_add_timer(struct scsi_cmnd *scmd, int timeout,
void (*complete)(struct scsi_cmnd *))
/**
* scsi_adjust_queue_depth - allow LLD to change queue depth on a SCSI device
* @sdev: pointer to SCSI device to change queue depth on
...
...
@@ -565,24 +542,6 @@ void scsi_block_requests(struct Scsi_Host * shost)
void scsi_deactivate_tcq(struct scsi_device *sdev, int depth)
/**
* scsi_delete_timer - cancel timer on a SCSI command.
* @scmd: pointer to scsi command instance
*
* Returns 1 if able to cancel timer else 0 (i.e. too late or already
* cancelled).
*
* Might block: no [may in the future if it invokes del_timer_sync()]
*
* Notes: All commands issued by upper levels already have a timeout
* associated with them. An LLD can use this function to cancel the
* timer.
*
* Defined in: drivers/scsi/scsi_error.c
**/
int scsi_delete_timer(struct scsi_cmnd *scmd)
/**
* scsi_host_alloc - create a scsi host adapter instance and perform basic
* initialization.
...
...
drivers/scsi/scsi_error.c
浏览文件 @
fe1b2d54
...
...
@@ -116,7 +116,6 @@ void scsi_add_timer(struct scsi_cmnd *scmd, int timeout,
add_timer
(
&
scmd
->
eh_timeout
);
}
EXPORT_SYMBOL
(
scsi_add_timer
);
/**
* scsi_delete_timer - Delete/cancel timer for a given function.
...
...
@@ -144,7 +143,6 @@ int scsi_delete_timer(struct scsi_cmnd *scmd)
return
rtn
;
}
EXPORT_SYMBOL
(
scsi_delete_timer
);
/**
* scsi_times_out - Timeout function for normal scsi commands.
...
...
drivers/scsi/scsi_priv.h
浏览文件 @
fe1b2d54
...
...
@@ -63,6 +63,9 @@ extern int __init scsi_init_devinfo(void);
extern
void
scsi_exit_devinfo
(
void
);
/* scsi_error.c */
extern
void
scsi_add_timer
(
struct
scsi_cmnd
*
,
int
,
void
(
*
)(
struct
scsi_cmnd
*
));
extern
int
scsi_delete_timer
(
struct
scsi_cmnd
*
);
extern
void
scsi_times_out
(
struct
scsi_cmnd
*
cmd
);
extern
int
scsi_error_handler
(
void
*
host
);
extern
int
scsi_decide_disposition
(
struct
scsi_cmnd
*
cmd
);
...
...
include/scsi/scsi_eh.h
浏览文件 @
fe1b2d54
...
...
@@ -27,9 +27,6 @@ struct scsi_sense_hdr { /* See SPC-3 section 4.5 */
};
extern
void
scsi_add_timer
(
struct
scsi_cmnd
*
,
int
,
void
(
*
)(
struct
scsi_cmnd
*
));
extern
int
scsi_delete_timer
(
struct
scsi_cmnd
*
);
extern
void
scsi_report_bus_reset
(
struct
Scsi_Host
*
,
int
);
extern
void
scsi_report_device_reset
(
struct
Scsi_Host
*
,
int
,
int
);
extern
int
scsi_block_when_processing_errors
(
struct
scsi_device
*
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录