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
9aa8863f
Commit
9aa8863f
authored
20 years ago
by
Andrew Morton
Committed by
Linus Torvalds
20 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] dio_bio_reap() return value fix
This function doesn't correctly accumulate -EIO for its caller.
parent
81779415
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
fs/direct-io.c
fs/direct-io.c
+4
-1
No files found.
fs/direct-io.c
View file @
9aa8863f
...
...
@@ -446,12 +446,15 @@ static int dio_bio_reap(struct dio *dio)
while
(
dio
->
bio_list
)
{
unsigned
long
flags
;
struct
bio
*
bio
;
int
ret2
;
spin_lock_irqsave
(
&
dio
->
bio_lock
,
flags
);
bio
=
dio
->
bio_list
;
dio
->
bio_list
=
bio
->
bi_private
;
spin_unlock_irqrestore
(
&
dio
->
bio_lock
,
flags
);
ret
=
dio_bio_complete
(
dio
,
bio
);
ret2
=
dio_bio_complete
(
dio
,
bio
);
if
(
ret
==
0
)
ret
=
ret2
;
}
dio
->
reap_counter
=
0
;
}
...
...
This diff is collapsed.
Click to expand it.
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