Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1388652 > unrolled thread
| Started by | Ming Lei <ming.lei@canonical.com> |
|---|---|
| First post | 2016-04-27 06:00 +0200 |
| Last post | 2016-04-27 06:00 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
[PATCH v2 1/3] fs: direct-io: handle error in dio_end_io() Ming Lei <ming.lei@canonical.com> - 2016-04-27 06:00 +0200
| From | Ming Lei <ming.lei@canonical.com> |
|---|---|
| Date | 2016-04-27 06:00 +0200 |
| Subject | [PATCH v2 1/3] fs: direct-io: handle error in dio_end_io() |
| Message-ID | <rsoNQ-2IC-17@gated-at.bofh.it> |
If error is passed to dio_end_io(), it should have been
dealt with. Unfortunately current code just ignores that
silently.
Only btrfs uses dio_end_io().
Signed-off-by: Ming Lei <ming.lei@canonical.com>
---
fs/direct-io.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/fs/direct-io.c b/fs/direct-io.c
index 4720377..a8dd60a 100644
--- a/fs/direct-io.c
+++ b/fs/direct-io.c
@@ -352,6 +352,9 @@ void dio_end_io(struct bio *bio, int error)
{
struct dio *dio = bio->bi_private;
+ if (!bio->bi_error)
+ bio->bi_error = error;
+
if (dio->is_async)
dio_bio_end_aio(bio);
else
--
1.9.1
Back to top | Article view | linux.kernel
csiph-web