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
496456c2
Commit
496456c2
authored
Nov 01, 2005
by
Jens Axboe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BLOCK] aoe: update for combined io statistics
Signed-off-by:
Jens Axboe
<
axboe@suse.de
>
parent
a362357b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
drivers/block/aoe/aoecmd.c
drivers/block/aoe/aoecmd.c
+4
-9
No files found.
drivers/block/aoe/aoecmd.c
View file @
496456c2
...
...
@@ -468,16 +468,11 @@ aoecmd_ata_rsp(struct sk_buff *skb)
unsigned
long
duration
=
jiffies
-
buf
->
start_time
;
unsigned
long
n_sect
=
buf
->
bio
->
bi_size
>>
9
;
struct
gendisk
*
disk
=
d
->
gd
;
const
int
rw
=
bio_data_dir
(
buf
->
bio
);
if
(
bio_data_dir
(
buf
->
bio
)
==
WRITE
)
{
disk_stat_inc
(
disk
,
writes
);
disk_stat_add
(
disk
,
write_ticks
,
duration
);
disk_stat_add
(
disk
,
write_sectors
,
n_sect
);
}
else
{
disk_stat_inc
(
disk
,
reads
);
disk_stat_add
(
disk
,
read_ticks
,
duration
);
disk_stat_add
(
disk
,
read_sectors
,
n_sect
);
}
disk_stat_inc
(
disk
,
ios
[
rw
]);
disk_stat_add
(
disk
,
ticks
[
rw
],
duration
);
disk_stat_add
(
disk
,
sectors
[
rw
],
n_sect
);
disk_stat_add
(
disk
,
io_ticks
,
duration
);
n
=
(
buf
->
flags
&
BUFFL_FAIL
)
?
-
EIO
:
0
;
bio_endio
(
buf
->
bio
,
buf
->
bio
->
bi_size
,
n
);
...
...
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