aboutsummaryrefslogtreecommitdiffstats
path: root/sbdd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbdd.c')
-rw-r--r--sbdd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sbdd.c b/sbdd.c
index 86ec402..f412ff2 100644
--- a/sbdd.c
+++ b/sbdd.c
@@ -59,6 +59,11 @@ static void io_end_bio(struct bio *bio)
pr_debug("I/O operation is completed\n");
+ if (bio->bi_status != BLK_STS_OK) {
+ pr_err("oops, error during I/O operation...");
+ /* TODO: handle errors */
+ }
+
io_bio->original_bio->bi_status = bio->bi_status;
bio_put(bio);