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
Kirill Smelkov
linux
Commits
e5112201
Commit
e5112201
authored
Apr 29, 2014
by
Slava Pestov
Committed by
Kent Overstreet
Aug 04, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcache: fix lockdep warnings on shutdown
parent
8b326d3a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
drivers/md/bcache/super.c
drivers/md/bcache/super.c
+4
-0
No files found.
drivers/md/bcache/super.c
View file @
e5112201
...
...
@@ -1214,7 +1214,9 @@ void bch_flash_dev_release(struct kobject *kobj)
static
void
flash_dev_free
(
struct
closure
*
cl
)
{
struct
bcache_device
*
d
=
container_of
(
cl
,
struct
bcache_device
,
cl
);
mutex_lock
(
&
bch_register_lock
);
bcache_device_free
(
d
);
mutex_unlock
(
&
bch_register_lock
);
kobject_put
(
&
d
->
kobj
);
}
...
...
@@ -1222,7 +1224,9 @@ static void flash_dev_flush(struct closure *cl)
{
struct
bcache_device
*
d
=
container_of
(
cl
,
struct
bcache_device
,
cl
);
mutex_lock
(
&
bch_register_lock
);
bcache_device_unlink
(
d
);
mutex_unlock
(
&
bch_register_lock
);
kobject_del
(
&
d
->
kobj
);
continue_at
(
cl
,
flash_dev_free
,
system_wq
);
}
...
...
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