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
25d2d4ed
Commit
25d2d4ed
authored
Oct 05, 2009
by
Jens Axboe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drbd: fixup for reverted dual in_flight patch
Signed-off-by:
Jens Axboe
<
jens.axboe@oracle.com
>
parent
5d13379a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
drivers/block/drbd/drbd_req.c
drivers/block/drbd/drbd_req.c
+2
-2
No files found.
drivers/block/drbd/drbd_req.c
View file @
25d2d4ed
...
@@ -40,7 +40,7 @@ static void _drbd_start_io_acct(struct drbd_conf *mdev, struct drbd_request *req
...
@@ -40,7 +40,7 @@ static void _drbd_start_io_acct(struct drbd_conf *mdev, struct drbd_request *req
part_stat_inc
(
cpu
,
&
mdev
->
vdisk
->
part0
,
ios
[
rw
]);
part_stat_inc
(
cpu
,
&
mdev
->
vdisk
->
part0
,
ios
[
rw
]);
part_stat_add
(
cpu
,
&
mdev
->
vdisk
->
part0
,
sectors
[
rw
],
bio_sectors
(
bio
));
part_stat_add
(
cpu
,
&
mdev
->
vdisk
->
part0
,
sectors
[
rw
],
bio_sectors
(
bio
));
part_stat_unlock
();
part_stat_unlock
();
mdev
->
vdisk
->
part0
.
in_flight
[
rw
]
++
;
mdev
->
vdisk
->
part0
.
in_flight
++
;
}
}
/* Update disk stats when completing request upwards */
/* Update disk stats when completing request upwards */
...
@@ -53,7 +53,7 @@ static void _drbd_end_io_acct(struct drbd_conf *mdev, struct drbd_request *req)
...
@@ -53,7 +53,7 @@ static void _drbd_end_io_acct(struct drbd_conf *mdev, struct drbd_request *req)
part_stat_add
(
cpu
,
&
mdev
->
vdisk
->
part0
,
ticks
[
rw
],
duration
);
part_stat_add
(
cpu
,
&
mdev
->
vdisk
->
part0
,
ticks
[
rw
],
duration
);
part_round_stats
(
cpu
,
&
mdev
->
vdisk
->
part0
);
part_round_stats
(
cpu
,
&
mdev
->
vdisk
->
part0
);
part_stat_unlock
();
part_stat_unlock
();
mdev
->
vdisk
->
part0
.
in_flight
[
rw
]
--
;
mdev
->
vdisk
->
part0
.
in_flight
--
;
}
}
static
void
_req_is_done
(
struct
drbd_conf
*
mdev
,
struct
drbd_request
*
req
,
const
int
rw
)
static
void
_req_is_done
(
struct
drbd_conf
*
mdev
,
struct
drbd_request
*
req
,
const
int
rw
)
...
...
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