Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
1312f40e
Commit
1312f40e
authored
Mar 12, 2006
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] regularize blk_cleanup_queue() use
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
6f325a13
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
12 deletions
+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
No files found.
drivers/block/loop.c
View file @
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
View file @
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
View file @
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
View file @
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
View file @
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
View file @
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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment