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
051cc395
Commit
051cc395
authored
Aug 08, 2008
by
Jens Axboe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
block: use bio_has_data() in the IO completion path
Signed-off-by:
Jens Axboe
<
jens.axboe@oracle.com
>
parent
a9c701e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
block/blk-core.c
block/blk-core.c
+4
-5
No files found.
block/blk-core.c
View file @
051cc395
...
...
@@ -1885,7 +1885,7 @@ static int blk_end_io(struct request *rq, int error, unsigned int nr_bytes,
struct
request_queue
*
q
=
rq
->
q
;
unsigned
long
flags
=
0UL
;
if
(
b
lk_fs_request
(
rq
)
||
blk_pc_request
(
rq
))
{
if
(
b
io_has_data
(
rq
->
bio
))
{
if
(
__end_that_request_first
(
rq
,
error
,
nr_bytes
))
return
1
;
...
...
@@ -1943,10 +1943,9 @@ EXPORT_SYMBOL_GPL(blk_end_request);
**/
int
__blk_end_request
(
struct
request
*
rq
,
int
error
,
unsigned
int
nr_bytes
)
{
if
(
blk_fs_request
(
rq
)
||
blk_pc_request
(
rq
))
{
if
(
__end_that_request_first
(
rq
,
error
,
nr_bytes
))
return
1
;
}
if
(
bio_has_data
(
rq
->
bio
)
&&
__end_that_request_first
(
rq
,
error
,
nr_bytes
))
return
1
;
add_disk_randomness
(
rq
->
rq_disk
);
...
...
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