Commit 676fa564 authored by Kamal Mostafa's avatar Kamal Mostafa Committed by Luis Henriques

UBUNTU: SAUCE: hio: set bi_error field to signal an I/O error on a BIO

BugLink: http://bugs.launchpad.net/bugs/1638700

The hio driver needs to accommodate handling the following which was
introduced in 4.3-rc1:

  commit 4246a0b6
  Author: Christoph Hellwig <hch@lst.de>
  Date:   Mon Jul 20 15:29:37 2015 +0200

    block: add a bi_error field to struct bio
Signed-off-by: default avatarKamal Mostafa <kamal@canonical.com>
Signed-off-by: default avatarLeann Ogasawara <leann.ogasawara@canonical.com>
Acked-by: default avatarTim Gardner <tim.gardner@canonical.com>
Acked-by: default avatarSeth Forshee <seth.forshee@canonical.com>
parent f24c7205
......@@ -61,7 +61,8 @@
#include <linux/devfs_fs_kernel.h>
#endif
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,3,0))
#define bio_endio(bio, errors) bio_endio(bio)
#define bio_endio(bio, errors) \
do { bio->bi_error = errors; bio_endio(bio); } while (0)
#endif
/* driver */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment