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
d83353b3
Commit
d83353b3
authored
Jun 11, 2014
by
Kent Overstreet
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcache: Fix more early shutdown bugs
Signed-off-by:
Kent Overstreet
<
kmo@daterainc.com
>
parent
400ffaa2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
drivers/md/bcache/super.c
drivers/md/bcache/super.c
+4
-3
No files found.
drivers/md/bcache/super.c
View file @
d83353b3
...
@@ -733,8 +733,6 @@ static void bcache_device_detach(struct bcache_device *d)
...
@@ -733,8 +733,6 @@ static void bcache_device_detach(struct bcache_device *d)
static
void
bcache_device_attach
(
struct
bcache_device
*
d
,
struct
cache_set
*
c
,
static
void
bcache_device_attach
(
struct
bcache_device
*
d
,
struct
cache_set
*
c
,
unsigned
id
)
unsigned
id
)
{
{
BUG_ON
(
test_bit
(
CACHE_SET_STOPPING
,
&
c
->
flags
));
d
->
id
=
id
;
d
->
id
=
id
;
d
->
c
=
c
;
d
->
c
=
c
;
c
->
devices
[
id
]
=
d
;
c
->
devices
[
id
]
=
d
;
...
@@ -1771,6 +1769,7 @@ static const char *register_cache_set(struct cache *ca)
...
@@ -1771,6 +1769,7 @@ static const char *register_cache_set(struct cache *ca)
pr_debug
(
"set version = %llu"
,
c
->
sb
.
version
);
pr_debug
(
"set version = %llu"
,
c
->
sb
.
version
);
}
}
kobject_get
(
&
ca
->
kobj
);
ca
->
set
=
c
;
ca
->
set
=
c
;
ca
->
set
->
cache
[
ca
->
sb
.
nr_this_dev
]
=
ca
;
ca
->
set
->
cache
[
ca
->
sb
.
nr_this_dev
]
=
ca
;
c
->
cache_by_alloc
[
c
->
caches_loaded
++
]
=
ca
;
c
->
cache_by_alloc
[
c
->
caches_loaded
++
]
=
ca
;
...
@@ -1888,10 +1887,12 @@ static void register_cache(struct cache_sb *sb, struct page *sb_page,
...
@@ -1888,10 +1887,12 @@ static void register_cache(struct cache_sb *sb, struct page *sb_page,
goto
err
;
goto
err
;
pr_info
(
"registered cache device %s"
,
bdevname
(
bdev
,
name
));
pr_info
(
"registered cache device %s"
,
bdevname
(
bdev
,
name
));
out:
kobject_put
(
&
ca
->
kobj
);
return
;
return
;
err:
err:
pr_notice
(
"error opening %s: %s"
,
bdevname
(
bdev
,
name
),
err
);
pr_notice
(
"error opening %s: %s"
,
bdevname
(
bdev
,
name
),
err
);
kobject_put
(
&
ca
->
kobj
)
;
goto
out
;
}
}
/* Global interfaces/init */
/* Global interfaces/init */
...
...
Kirill Smelkov
@kirr
mentioned in commit
eebbc086
·
Jun 08, 2016
mentioned in commit
eebbc086
mentioned in commit eebbc086adaef10e7cd91e1b13b4063a4d4756a2
Toggle commit list
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