Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
275a082f
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
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看板
提交
275a082f
编写于
8月 22, 2006
作者:
T
Trond Myklebust
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add a real API for dealing with blk_congestion_wait()
Signed-off-by:
N
Trond Myklebust
<
Trond.Myklebust@netapp.com
>
上级
94a6d753
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
24 addition
and
0 deletion
+24
-0
block/ll_rw_blk.c
block/ll_rw_blk.c
+12
-0
fs/nfs/write.c
fs/nfs/write.c
+1
-0
include/linux/blkdev.h
include/linux/blkdev.h
+1
-0
include/linux/writeback.h
include/linux/writeback.h
+1
-0
mm/page-writeback.c
mm/page-writeback.c
+9
-0
未找到文件。
block/ll_rw_blk.c
浏览文件 @
275a082f
...
...
@@ -2734,6 +2734,18 @@ long blk_congestion_wait(int rw, long timeout)
EXPORT_SYMBOL
(
blk_congestion_wait
);
/**
* blk_congestion_end - wake up sleepers on a congestion queue
* @rw: READ or WRITE
*/
void
blk_congestion_end
(
int
rw
)
{
wait_queue_head_t
*
wqh
=
&
congestion_wqh
[
rw
];
if
(
waitqueue_active
(
wqh
))
wake_up
(
wqh
);
}
/*
* Has to be called with the request spinlock acquired
*/
...
...
fs/nfs/write.c
浏览文件 @
275a082f
...
...
@@ -396,6 +396,7 @@ int nfs_writepages(struct address_space *mapping, struct writeback_control *wbc)
out:
clear_bit
(
BDI_write_congested
,
&
bdi
->
state
);
wake_up_all
(
&
nfs_write_congestion
);
writeback_congestion_end
();
return
err
;
}
...
...
include/linux/blkdev.h
浏览文件 @
275a082f
...
...
@@ -746,6 +746,7 @@ extern void blk_queue_free_tags(request_queue_t *);
extern
int
blk_queue_resize_tags
(
request_queue_t
*
,
int
);
extern
void
blk_queue_invalidate_tags
(
request_queue_t
*
);
extern
long
blk_congestion_wait
(
int
rw
,
long
timeout
);
extern
void
blk_congestion_end
(
int
rw
);
extern
void
blk_rq_bio_prep
(
request_queue_t
*
,
struct
request
*
,
struct
bio
*
);
extern
int
blkdev_issue_flush
(
struct
block_device
*
,
sector_t
*
);
...
...
include/linux/writeback.h
浏览文件 @
275a082f
...
...
@@ -85,6 +85,7 @@ int wakeup_pdflush(long nr_pages);
void
laptop_io_completion
(
void
);
void
laptop_sync_completion
(
void
);
void
throttle_vm_writeout
(
void
);
void
writeback_congestion_end
(
void
);
/* These are exported to sysctl. */
extern
int
dirty_background_ratio
;
...
...
mm/page-writeback.c
浏览文件 @
275a082f
...
...
@@ -802,6 +802,15 @@ int test_set_page_writeback(struct page *page)
}
EXPORT_SYMBOL
(
test_set_page_writeback
);
/*
* Wakes up tasks that are being throttled due to writeback congestion
*/
void
writeback_congestion_end
(
void
)
{
blk_congestion_end
(
WRITE
);
}
EXPORT_SYMBOL
(
writeback_congestion_end
);
/*
* Return true if any of the pages in the mapping are marged with the
* passed tag.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录