Package: flashcache
Version: 3.1.3+git20150701-2
Severity: serious
Tags: patch
User: a...@ubuntu.com
Usertags: origin-ubuntu xenial ubuntu-patch

Dear Maintainer,

While merging up the Ubuntu delta with the current flashcache it looks
very much like we are not correctly passing over the BIO error code in
the 4.3 compatibility code.

We have the attached patch applied to correct this.  Looking at upstream
they also have fixed the 4.3 issue in the same manner.

Cheers.

-apw


-- System Information:
Debian Release: stretch/sid
  APT prefers xenial-updates
  APT policy: (500, 'xenial-updates'), (500, 'xenial-security'), (500, 
'xenial'), (100, 'xenial-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.3.0-5-generic (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
diff -Nru flashcache-3.1.3+git20150701/debian/patches/record-bio-error-on-linux-4.3.patch flashcache-3.1.3+git20150701/debian/patches/record-bio-error-on-linux-4.3.patch
--- flashcache-3.1.3+git20150701/debian/patches/record-bio-error-on-linux-4.3.patch	1970-01-01 01:00:00.000000000 +0100
+++ flashcache-3.1.3+git20150701/debian/patches/record-bio-error-on-linux-4.3.patch	2016-01-28 12:20:13.000000000 +0000
@@ -0,0 +1,16 @@
+Description: record bio error on linux 4.3
+ Record the bio error code when ending an IO on linux 4.3 and later.
+Author: Andy Whitcroft <a...@ubuntu.com>
+
+Index: flashcache-3.1.3+git20150701/src/flashcache_subr.c
+===================================================================
+--- flashcache-3.1.3+git20150701.orig/src/flashcache_subr.c
++++ flashcache-3.1.3+git20150701/src/flashcache_subr.c
+@@ -739,6 +739,7 @@ flashcache_bio_endio(struct bio *bio, in
+ #elif LINUX_VERSION_CODE < KERNEL_VERSION(4,3,0)
+ 	bio_endio(bio, error);
+ #else
++	bio->bi_error = error;
+ 	bio_endio(bio);
+ #endif	
+ }
diff -Nru flashcache-3.1.3+git20150701/debian/patches/series flashcache-3.1.3+git20150701/debian/patches/series
--- flashcache-3.1.3+git20150701/debian/patches/series	2015-12-25 03:59:22.000000000 +0000
+++ flashcache-3.1.3+git20150701/debian/patches/series	2016-01-27 16:27:07.000000000 +0000
@@ -1,3 +1,4 @@
 usable-makefile.patch
 honor-cflags-and-ldflags.patch
 fix-build-error-on-linux-4.3.patch
+record-bio-error-on-linux-4.3.patch

Reply via email to