Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
a870a3a4
Commit
a870a3a4
authored
Oct 28, 2009
by
Jens Axboe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drbd: fix in_flight rw indexing
Signed-off-by:
Jens Axboe
<
jens.axboe@oracle.com
>
parent
cfb1e33e
Changes
1
Hide 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 @
a870a3a4
...
...
@@ -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_add
(
cpu
,
&
mdev
->
vdisk
->
part0
,
sectors
[
rw
],
bio_sectors
(
bio
));
part_stat_unlock
();
mdev
->
vdisk
->
part0
.
in_flight
++
;
mdev
->
vdisk
->
part0
.
in_flight
[
rw
]
++
;
}
/* 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)
part_stat_add
(
cpu
,
&
mdev
->
vdisk
->
part0
,
ticks
[
rw
],
duration
);
part_round_stats
(
cpu
,
&
mdev
->
vdisk
->
part0
);
part_stat_unlock
();
mdev
->
vdisk
->
part0
.
in_flight
--
;
mdev
->
vdisk
->
part0
.
in_flight
[
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