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
3215ffe1
Commit
3215ffe1
authored
Jan 14, 2003
by
Patrick Mochel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deadline iosched: make sure queue is valid before unregistering it.
- Fixes oops on boot when freeing initrd in 2.5.58.
parent
bcd8a0e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
drivers/block/elevator.c
drivers/block/elevator.c
+5
-3
No files found.
drivers/block/elevator.c
View file @
3215ffe1
...
@@ -431,10 +431,12 @@ int elv_register_queue(struct gendisk *disk)
...
@@ -431,10 +431,12 @@ int elv_register_queue(struct gendisk *disk)
void
elv_unregister_queue
(
struct
gendisk
*
disk
)
void
elv_unregister_queue
(
struct
gendisk
*
disk
)
{
{
request_queue_t
*
q
=
disk
->
queue
;
request_queue_t
*
q
=
disk
->
queue
;
elevator_t
*
e
=
&
q
->
elevator
;
kobject_unregister
(
&
e
->
kobj
);
if
(
q
)
{
kobject_put
(
&
disk
->
kobj
);
elevator_t
*
e
=
&
q
->
elevator
;
kobject_unregister
(
&
e
->
kobj
);
kobject_put
(
&
disk
->
kobj
);
}
}
}
elevator_t
elevator_noop
=
{
elevator_t
elevator_noop
=
{
...
...
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