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
1383923d
Commit
1383923d
authored
Jan 22, 2013
by
Jens Axboe
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-jens' of
git://git.drbd.org/linux-drbd
into for-linus
parents
58c49df3
2681f7f6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
drivers/block/drbd/drbd_req.c
drivers/block/drbd/drbd_req.c
+1
-1
drivers/block/drbd/drbd_req.h
drivers/block/drbd/drbd_req.h
+1
-0
drivers/block/drbd/drbd_state.c
drivers/block/drbd/drbd_state.c
+7
-0
No files found.
drivers/block/drbd/drbd_req.c
View file @
1383923d
...
...
@@ -168,7 +168,7 @@ static void wake_all_senders(struct drbd_tconn *tconn) {
}
/* must hold resource->req_lock */
static
void
start_new_tl_epoch
(
struct
drbd_tconn
*
tconn
)
void
start_new_tl_epoch
(
struct
drbd_tconn
*
tconn
)
{
/* no point closing an epoch, if it is empty, anyways. */
if
(
tconn
->
current_tle_writes
==
0
)
...
...
drivers/block/drbd/drbd_req.h
View file @
1383923d
...
...
@@ -267,6 +267,7 @@ struct bio_and_error {
int
error
;
};
extern
void
start_new_tl_epoch
(
struct
drbd_tconn
*
tconn
);
extern
void
drbd_req_destroy
(
struct
kref
*
kref
);
extern
void
_req_may_be_done
(
struct
drbd_request
*
req
,
struct
bio_and_error
*
m
);
...
...
drivers/block/drbd/drbd_state.c
View file @
1383923d
...
...
@@ -931,6 +931,7 @@ __drbd_set_state(struct drbd_conf *mdev, union drbd_state ns,
enum
drbd_state_rv
rv
=
SS_SUCCESS
;
enum
sanitize_state_warnings
ssw
;
struct
after_state_chg_work
*
ascw
;
bool
did_remote
,
should_do_remote
;
os
=
drbd_read_state
(
mdev
);
...
...
@@ -981,11 +982,17 @@ __drbd_set_state(struct drbd_conf *mdev, union drbd_state ns,
(
os
.
disk
!=
D_DISKLESS
&&
ns
.
disk
==
D_DISKLESS
))
atomic_inc
(
&
mdev
->
local_cnt
);
did_remote
=
drbd_should_do_remote
(
mdev
->
state
);
mdev
->
state
.
i
=
ns
.
i
;
should_do_remote
=
drbd_should_do_remote
(
mdev
->
state
);
mdev
->
tconn
->
susp
=
ns
.
susp
;
mdev
->
tconn
->
susp_nod
=
ns
.
susp_nod
;
mdev
->
tconn
->
susp_fen
=
ns
.
susp_fen
;
/* put replicated vs not-replicated requests in seperate epochs */
if
(
did_remote
!=
should_do_remote
)
start_new_tl_epoch
(
mdev
->
tconn
);
if
(
os
.
disk
==
D_ATTACHING
&&
ns
.
disk
>=
D_NEGOTIATING
)
drbd_print_uuids
(
mdev
,
"attached to UUIDs"
);
...
...
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