Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
1312f40e
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 1 年 前同步成功
通知
158
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1312f40e
编写于
3月 12, 2006
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[PATCH] regularize blk_cleanup_queue() use
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
6f325a13
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
15 addition
and
12 deletion
+15
-12
drivers/block/loop.c
drivers/block/loop.c
+2
-2
drivers/block/pktcdvd.c
drivers/block/pktcdvd.c
+2
-2
drivers/block/umem.c
drivers/block/umem.c
+1
-1
drivers/md/dm.c
drivers/md/dm.c
+2
-2
drivers/md/md.c
drivers/md/md.c
+4
-1
drivers/s390/block/dcssblk.c
drivers/s390/block/dcssblk.c
+4
-4
未找到文件。
drivers/block/loop.c
浏览文件 @
1312f40e
...
...
@@ -1307,7 +1307,7 @@ static int __init loop_init(void)
out_mem4:
while
(
i
--
)
blk_
put
_queue
(
loop_dev
[
i
].
lo_queue
);
blk_
cleanup
_queue
(
loop_dev
[
i
].
lo_queue
);
devfs_remove
(
"loop"
);
i
=
max_loop
;
out_mem3:
...
...
@@ -1328,7 +1328,7 @@ static void loop_exit(void)
for
(
i
=
0
;
i
<
max_loop
;
i
++
)
{
del_gendisk
(
disks
[
i
]);
blk_
put
_queue
(
loop_dev
[
i
].
lo_queue
);
blk_
cleanup
_queue
(
loop_dev
[
i
].
lo_queue
);
put_disk
(
disks
[
i
]);
}
devfs_remove
(
"loop"
);
...
...
drivers/block/pktcdvd.c
浏览文件 @
1312f40e
...
...
@@ -2514,7 +2514,7 @@ static int pkt_setup_dev(struct pkt_ctrl_command *ctrl_cmd)
return
0
;
out_new_dev:
blk_
put
_queue
(
disk
->
queue
);
blk_
cleanup
_queue
(
disk
->
queue
);
out_mem2:
put_disk
(
disk
);
out_mem:
...
...
@@ -2555,7 +2555,7 @@ static int pkt_remove_dev(struct pkt_ctrl_command *ctrl_cmd)
DPRINTK
(
"pktcdvd: writer %s unmapped
\n
"
,
pd
->
name
);
del_gendisk
(
pd
->
disk
);
blk_
put
_queue
(
pd
->
disk
->
queue
);
blk_
cleanup
_queue
(
pd
->
disk
->
queue
);
put_disk
(
pd
->
disk
);
pkt_devs
[
idx
]
=
NULL
;
...
...
drivers/block/umem.c
浏览文件 @
1312f40e
...
...
@@ -1131,7 +1131,7 @@ static void mm_pci_remove(struct pci_dev *dev)
pci_free_consistent
(
card
->
dev
,
PAGE_SIZE
*
2
,
card
->
mm_pages
[
1
].
desc
,
card
->
mm_pages
[
1
].
page_dma
);
blk_
put
_queue
(
card
->
queue
);
blk_
cleanup
_queue
(
card
->
queue
);
}
static
const
struct
pci_device_id
mm_pci_ids
[]
=
{
{
...
...
drivers/md/dm.c
浏览文件 @
1312f40e
...
...
@@ -840,7 +840,7 @@ static struct mapped_device *alloc_dev(unsigned int minor, int persistent)
bad3:
mempool_destroy
(
md
->
io_pool
);
bad2:
blk_
put
_queue
(
md
->
queue
);
blk_
cleanup
_queue
(
md
->
queue
);
free_minor
(
minor
);
bad1:
kfree
(
md
);
...
...
@@ -860,7 +860,7 @@ static void free_dev(struct mapped_device *md)
del_gendisk
(
md
->
disk
);
free_minor
(
minor
);
put_disk
(
md
->
disk
);
blk_
put
_queue
(
md
->
queue
);
blk_
cleanup
_queue
(
md
->
queue
);
kfree
(
md
);
}
...
...
drivers/md/md.c
浏览文件 @
1312f40e
...
...
@@ -213,8 +213,11 @@ static void mddev_put(mddev_t *mddev)
return
;
if
(
!
mddev
->
raid_disks
&&
list_empty
(
&
mddev
->
disks
))
{
list_del
(
&
mddev
->
all_mddevs
);
blk_put_queue
(
mddev
->
queue
);
/* that blocks */
blk_cleanup_queue
(
mddev
->
queue
);
/* that also blocks */
kobject_unregister
(
&
mddev
->
kobj
);
/* result blows... */
}
spin_unlock
(
&
all_mddevs_lock
);
}
...
...
drivers/s390/block/dcssblk.c
浏览文件 @
1312f40e
...
...
@@ -273,7 +273,7 @@ dcssblk_shared_store(struct device *dev, struct device_attribute *attr, const ch
list_del
(
&
dev_info
->
lh
);
del_gendisk
(
dev_info
->
gd
);
blk_
put
_queue
(
dev_info
->
dcssblk_queue
);
blk_
cleanup
_queue
(
dev_info
->
dcssblk_queue
);
dev_info
->
gd
->
queue
=
NULL
;
put_disk
(
dev_info
->
gd
);
device_unregister
(
dev
);
...
...
@@ -491,7 +491,7 @@ dcssblk_add_store(struct device *dev, struct device_attribute *attr, const char
unregister_dev:
PRINT_ERR
(
"device_create_file() failed!
\n
"
);
list_del
(
&
dev_info
->
lh
);
blk_
put
_queue
(
dev_info
->
dcssblk_queue
);
blk_
cleanup
_queue
(
dev_info
->
dcssblk_queue
);
dev_info
->
gd
->
queue
=
NULL
;
put_disk
(
dev_info
->
gd
);
device_unregister
(
&
dev_info
->
dev
);
...
...
@@ -505,7 +505,7 @@ dcssblk_add_store(struct device *dev, struct device_attribute *attr, const char
unload_seg:
segment_unload
(
local_buf
);
dealloc_gendisk:
blk_
put
_queue
(
dev_info
->
dcssblk_queue
);
blk_
cleanup
_queue
(
dev_info
->
dcssblk_queue
);
dev_info
->
gd
->
queue
=
NULL
;
put_disk
(
dev_info
->
gd
);
free_dev_info:
...
...
@@ -562,7 +562,7 @@ dcssblk_remove_store(struct device *dev, struct device_attribute *attr, const ch
list_del
(
&
dev_info
->
lh
);
del_gendisk
(
dev_info
->
gd
);
blk_
put
_queue
(
dev_info
->
dcssblk_queue
);
blk_
cleanup
_queue
(
dev_info
->
dcssblk_queue
);
dev_info
->
gd
->
queue
=
NULL
;
put_disk
(
dev_info
->
gd
);
device_unregister
(
&
dev_info
->
dev
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录