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
aee177ac
Commit
aee177ac
authored
Oct 12, 2015
by
Guoqing Jiang
Committed by
Goldwyn Rodrigues
Oct 12, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
md-cluster: zero cmsg before it was sent
Signed-off-by:
Guoqing Jiang
<
gqjiang@suse.com
>
parent
256f5b24
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
drivers/md/md-cluster.c
drivers/md/md-cluster.c
+3
-3
No files found.
drivers/md/md-cluster.c
View file @
aee177ac
...
...
@@ -882,7 +882,7 @@ static int resync_start(struct mddev *mddev)
static
int
resync_info_update
(
struct
mddev
*
mddev
,
sector_t
lo
,
sector_t
hi
)
{
struct
md_cluster_info
*
cinfo
=
mddev
->
cluster_info
;
struct
cluster_msg
cmsg
;
struct
cluster_msg
cmsg
=
{
0
}
;
add_resync_info
(
mddev
,
cinfo
->
bitmap_lockres
,
lo
,
hi
);
/* Re-acquire the lock to refresh LVB */
...
...
@@ -982,7 +982,7 @@ static int new_disk_ack(struct mddev *mddev, bool ack)
static
int
remove_disk
(
struct
mddev
*
mddev
,
struct
md_rdev
*
rdev
)
{
struct
cluster_msg
cmsg
;
struct
cluster_msg
cmsg
=
{
0
}
;
struct
md_cluster_info
*
cinfo
=
mddev
->
cluster_info
;
cmsg
.
type
=
cpu_to_le32
(
REMOVE
);
cmsg
.
raid_slot
=
cpu_to_le32
(
rdev
->
desc_nr
);
...
...
@@ -993,7 +993,7 @@ static int gather_bitmaps(struct md_rdev *rdev)
{
int
sn
,
err
;
sector_t
lo
,
hi
;
struct
cluster_msg
cmsg
;
struct
cluster_msg
cmsg
=
{
0
}
;
struct
mddev
*
mddev
=
rdev
->
mddev
;
struct
md_cluster_info
*
cinfo
=
mddev
->
cluster_info
;
...
...
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