Your message dated Thu, 22 Sep 2016 11:48:38 +0000
with message-id <e1bn2uy-00046v...@franck.debian.org>
and subject line Bug#838547: fixed in dm-writeboost 2.2.6-1
has caused the Debian Bug report #838547,
regarding dm-writeboost: module fails to compile with kernel 4.8
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
838547: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=838547
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: dm-writeboost
Version: 2.2.3-1
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu yakkety ubuntu-patch

Dear Maintainer,

with kernel 4.8 the bi_rw element of the request queue struct was
replaced by bi_op and bi_op_flags.
The additional compat code ensures the module with also compile
with 4.8 kernels running on the target DKMS system. Without this
the dkms install step fails for 4.8 kernels.

In Ubuntu, the attached patch was applied to achieve the following:

  * Fix FTBS in dkms with 4.8+ kernels (LP: #1625054).


Thanks for considering the patch.


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

Kernel: Linux 3.13.0-96-generic (SMP w/8 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru dm-writeboost-2.2.3/debian/changelog dm-writeboost-2.2.3/debian/changelog
diff -Nru dm-writeboost-2.2.3/debian/patches/add-compat-4.8.patch dm-writeboost-2.2.3/debian/patches/add-compat-4.8.patch
--- dm-writeboost-2.2.3/debian/patches/add-compat-4.8.patch	1970-01-01 01:00:00.000000000 +0100
+++ dm-writeboost-2.2.3/debian/patches/add-compat-4.8.patch	2016-09-21 15:51:36.000000000 +0200
@@ -0,0 +1,226 @@
+Description: Fix FTBS of DKMS package with 4.8+ kernels
+ Add compat code to handle rename/split of bi_rw.
+Author: Stefan Bader <stefan.ba...@canonical.com>
+Index: dm-writeboost-2.2.3/src/dm-writeboost-daemon.c
+===================================================================
+--- dm-writeboost-2.2.3.orig/src/dm-writeboost-daemon.c	2016-08-02 12:22:48.000000000 +0200
++++ dm-writeboost-2.2.3/src/dm-writeboost-daemon.c	2016-09-21 14:04:10.461288077 +0200
+@@ -77,7 +77,11 @@ void flush_proc(struct work_struct *work
+ 
+ 	struct dm_io_request io_req = {
+ 		.client = wb->io_client,
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,8,0)
+ 		.bi_rw = WRITE,
++#else
++		.bi_op = REQ_OP_WRITE,
++#endif
+ 		.notify.fn = NULL,
+ 		.mem.type = DM_IO_VMA,
+ 		.mem.ptr.addr = rambuf->data,
+@@ -143,7 +147,11 @@ static void submit_writeback_io(struct w
+ 	if (writeback_io->data_bits == 255) {
+ 		struct dm_io_request io_req_w = {
+ 			.client = wb->io_client,
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,8,0)
+ 			.bi_rw = WRITE,
++#else
++			.bi_op = REQ_OP_WRITE,
++#endif
+ 			.notify.fn = writeback_endio,
+ 			.notify.context = wb,
+ 			.mem.type = DM_IO_VMA,
+@@ -168,7 +176,11 @@ static void submit_writeback_io(struct w
+ 
+ 			io_req_w = (struct dm_io_request) {
+ 				.client = wb->io_client,
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,8,0)
+ 				.bi_rw = WRITE,
++#else
++				.bi_op = REQ_OP_WRITE,
++#endif
+ 				.notify.fn = writeback_endio,
+ 				.notify.context = wb,
+ 				.mem.type = DM_IO_VMA,
+@@ -259,7 +271,11 @@ static int fill_writeback_seg(struct wb_
+ 
+ 	struct dm_io_request io_req_r = {
+ 		.client = wb->io_client,
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,8,0)
+ 		.bi_rw = READ,
++#else
++		.bi_op = REQ_OP_READ,
++#endif
+ 		.notify.fn = NULL,
+ 		.mem.type = DM_IO_VMA,
+ 		.mem.ptr.addr = writeback_seg->buf,
+@@ -483,7 +499,12 @@ static void update_superblock_record(str
+ 
+ 	io_req = (struct dm_io_request) {
+ 		.client = wb->io_client,
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,8,0)
+ 		.bi_rw = WRITE_FUA,
++#else
++		.bi_op = REQ_OP_WRITE,
++		.bi_op_flags = WRITE_FUA,
++#endif
+ 		.notify.fn = NULL,
+ 		.mem.type = DM_IO_KMEM,
+ 		.mem.ptr.addr = buf,
+Index: dm-writeboost-2.2.3/src/dm-writeboost-metadata.c
+===================================================================
+--- dm-writeboost-2.2.3.orig/src/dm-writeboost-metadata.c	2016-08-02 12:22:48.000000000 +0200
++++ dm-writeboost-2.2.3/src/dm-writeboost-metadata.c	2016-09-21 14:04:10.473288076 +0200
+@@ -321,7 +321,11 @@ static int read_superblock_header(struct
+ 
+ 	io_req_sup = (struct dm_io_request) {
+ 		.client = wb->io_client,
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,8,0)
+ 		.bi_rw = READ,
++#else
++		.bi_op = REQ_OP_READ,
++#endif
+ 		.notify.fn = NULL,
+ 		.mem.type = DM_IO_KMEM,
+ 		.mem.ptr.addr = buf,
+@@ -386,7 +390,12 @@ static int format_superblock_header(stru
+ 
+ 	io_req_sup = (struct dm_io_request) {
+ 		.client = wb->io_client,
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,8,0)
+ 		.bi_rw = WRITE_FUA,
++#else
++		.bi_op = REQ_OP_WRITE,
++		.bi_op_flags = WRITE_FUA,
++#endif
+ 		.notify.fn = NULL,
+ 		.mem.type = DM_IO_KMEM,
+ 		.mem.ptr.addr = buf,
+@@ -480,7 +489,11 @@ static int format_all_segment_headers(st
+ 	for (i = 0; i < wb->nr_segments; i++) {
+ 		struct dm_io_request io_req_seg = {
+ 			.client = wb->io_client,
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,8,0)
+ 			.bi_rw = WRITE,
++#else
++			.bi_op = REQ_OP_WRITE,
++#endif
+ 			.notify.fn = format_segmd_endio,
+ 			.notify.context = &context,
+ 			.mem.type = DM_IO_KMEM,
+@@ -654,7 +667,11 @@ static int read_superblock_record(struct
+ 
+ 	io_req = (struct dm_io_request) {
+ 		.client = wb->io_client,
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,8,0)
+ 		.bi_rw = READ,
++#else
++		.bi_op = REQ_OP_READ,
++#endif
+ 		.notify.fn = NULL,
+ 		.mem.type = DM_IO_KMEM,
+ 		.mem.ptr.addr = buf,
+@@ -683,7 +700,11 @@ static int read_whole_segment(void *buf,
+ {
+ 	struct dm_io_request io_req = {
+ 		.client = wb->io_client,
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,8,0)
+ 		.bi_rw = READ,
++#else
++		.bi_op = REQ_OP_READ,
++#endif
+ 		.notify.fn = NULL,
+ 		.mem.type = DM_IO_VMA,
+ 		.mem.ptr.addr = buf,
+@@ -775,7 +796,11 @@ static int apply_metablock_device(struct
+ 
+ 			io_req = (struct dm_io_request) {
+ 				.client = wb->io_client,
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,8,0)
+ 				.bi_rw = WRITE,
++#else
++				.bi_op = REQ_OP_WRITE,
++#endif
+ 				.notify.fn = NULL,
+ 				.mem.type = DM_IO_KMEM,
+ 				.mem.ptr.addr = wio.data + (i << 9),
+@@ -826,7 +851,11 @@ static int read_segment_header(void *buf
+ {
+ 	struct dm_io_request io_req = {
+ 		.client = wb->io_client,
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,8,0)
+ 		.bi_rw = READ,
++#else
++		.bi_op = REQ_OP_READ,
++#endif
+ 		.notify.fn = NULL,
+ 		.mem.type = DM_IO_KMEM,
+ 		.mem.ptr.addr = buf,
+Index: dm-writeboost-2.2.3/src/dm-writeboost-target.c
+===================================================================
+--- dm-writeboost-2.2.3.orig/src/dm-writeboost-target.c	2016-08-02 12:22:48.000000000 +0200
++++ dm-writeboost-2.2.3/src/dm-writeboost-target.c	2016-09-21 14:05:17.625287422 +0200
+@@ -106,9 +106,16 @@ int wb_io_internal(struct wb_device *wb,
+ 			eb = *err_bits;
+ 
+ 		format_dev_t(buf, dev);
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,8,0)
+ 		DMERR("%s() I/O error(%d), bits(%lu), dev(%s), sector(%llu), rw(%d)",
+ 		      caller, err, eb,
+ 		      buf, (unsigned long long) regions->sector, io_req->bi_rw);
++#else
++		DMERR("%s() I/O error(%d), bits(%lu), dev(%s), sector(%llu), op(%d), op_flags(%d)",
++		      caller, err, eb,
++		      buf, (unsigned long long) regions->sector,
++		      io_req->bi_op, io_req->bi_op_flags);
++#endif
+ 	}
+ 
+ 	return err;
+@@ -532,7 +539,11 @@ static int fill_payload_by_backing(struc
+ 
+ 	io_req = (struct dm_io_request) {
+ 		.client = wb->io_client,
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,8,0)
+ 		.bi_rw = READ,
++#else
++		.bi_op = REQ_OP_READ,
++#endif
+ 		.notify.fn = NULL,
+ 		.mem.type = DM_IO_KMEM,
+ 		.mem.ptr.addr = buf + (offset << 9),
+@@ -584,7 +595,11 @@ static void *read_mb(struct wb_device *w
+ 
+ 		io_req = (struct dm_io_request) {
+ 			.client = wb->io_client,
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,8,0)
+ 			.bi_rw = READ,
++#else
++			.bi_op = REQ_OP_READ,
++#endif
+ 			.notify.fn = NULL,
+ 			.mem.type = DM_IO_KMEM,
+ 			.mem.ptr.addr = result + (i << 9),
+@@ -828,7 +843,11 @@ static int complete_process_write(struct
+ 	 * bio with REQ_FUA has data.
+ 	 * For such bio, we first treat it like a normal bio and then as a REQ_FLUSH bio.
+ 	 */
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,8,0)
+ 	if (bio->bi_rw & REQ_FUA) {
++#else
++	if (bio->bi_opf & REQ_FUA) {
++#endif
+ 		queue_barrier_io(wb, bio);
+ 		return DM_MAPIO_SUBMITTED;
+ 	}
+@@ -1012,7 +1031,11 @@ static int writeboost_map(struct dm_targ
+ 	struct per_bio_data *pbd = per_bio_data(wb, bio);
+ 	pbd->type = PBD_NONE;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,8,0)
+ 	if (bio->bi_rw & REQ_FLUSH)
++#else
++	if (bio->bi_opf & REQ_PREFLUSH)
++#endif
+ 		return process_flush_bio(wb, bio);
+ 
+ 	return process_bio(wb, bio);
diff -Nru dm-writeboost-2.2.3/debian/patches/series dm-writeboost-2.2.3/debian/patches/series
--- dm-writeboost-2.2.3/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
+++ dm-writeboost-2.2.3/debian/patches/series	2016-09-21 14:03:20.000000000 +0200
@@ -0,0 +1 @@
+add-compat-4.8.patch

--- End Message ---
--- Begin Message ---
Source: dm-writeboost
Source-Version: 2.2.6-1

We believe that the bug you reported is fixed in the latest version of
dm-writeboost, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 838...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Dmitry Smirnov <only...@debian.org> (supplier of updated dm-writeboost package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Thu, 22 Sep 2016 21:26:58 +1000
Source: dm-writeboost
Binary: dm-writeboost-dkms
Architecture: source all
Version: 2.2.6-1
Distribution: unstable
Urgency: medium
Maintainer: Dmitry Smirnov <only...@debian.org>
Changed-By: Dmitry Smirnov <only...@debian.org>
Description:
 dm-writeboost-dkms - log-structured caching for Linux
Closes: 838547
Changes:
 dm-writeboost (2.2.6-1) unstable; urgency=medium
 .
   * New upstream release [September 2016].
     + fixed FTBFS with Linux 4.8 (Closes: #838547).
Checksums-Sha1:
 61bd8cd9808d0e22f035d1b4d7dc7a76605fe5bc 1914 dm-writeboost_2.2.6-1.dsc
 9e4a26dcc796294b549b9732d8a3326598f61d05 38655 dm-writeboost_2.2.6.orig.tar.gz
 ef4f62d59d73c6436a127af095202a222e8dca0a 2476 
dm-writeboost_2.2.6-1.debian.tar.xz
 d369d1860e2c92e7c61838b64e3da59610f01f3a 31846 
dm-writeboost-dkms_2.2.6-1_all.deb
Checksums-Sha256:
 978cc4a1b3493d697d63d0d54b380524eebf2a851575c33da8662793391767bc 1914 
dm-writeboost_2.2.6-1.dsc
 7466dce008eaa6108226176d3a25a112ec8b25e05433dfb60473776f44bc96dc 38655 
dm-writeboost_2.2.6.orig.tar.gz
 c947c8828a9b590643c6ee7307b842d126a38aa13e655c980323ce8f0e4639e8 2476 
dm-writeboost_2.2.6-1.debian.tar.xz
 038478dbe9cc5194121ab03cbc632979f33597e06a1450e9121b8e33dc47af4e 31846 
dm-writeboost-dkms_2.2.6-1_all.deb
Files:
 665963ed13d4e3a7189b5577f199b3a9 1914 kernel optional dm-writeboost_2.2.6-1.dsc
 ea8ceb312641a2e0fa2873e3b5a2b0f1 38655 kernel optional 
dm-writeboost_2.2.6.orig.tar.gz
 12048e9f91307117960496e8ae2a701a 2476 kernel optional 
dm-writeboost_2.2.6-1.debian.tar.xz
 247db50a5e15708c17f6b315df4e651c 31846 kernel optional 
dm-writeboost-dkms_2.2.6-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJX48BkAAoJEFK2u9lTlo0b/NQP/3TACJABQLho8LY9VOsRoRDj
HGlwLp9LddZEgSDMGBcmMtBDyUTGSWFu9HR2wKduAPoYfJNDmXW+zew9Tu3X5tA1
XEyc90MQxhBV/n0DXvkvSY+3Q84cwuE2Lnw4Pq+mETOFMKvtDKA5X1/a8HL4/2zl
B3YMqRF4gfv2T+U6bFZP8te+Xcrk6vTbk8s3w1dordDwPC5F3USlw8wIII9Q+Sa7
ipnv1GW/11oS13ANz4KFt9WbvU4Rr3XtzT/xJRbRVHHmuqgKdBxkJTXIB24O6oA9
hVfYh29nWJA4aiYc9uU1cu9Y38oXP+S8u6tIrKyrOcbcguWrK6dK1r0pWC1c84/V
mqaeR0VAylx1q+r557Jr5FBXcTf2ah+Y6QiqWSEUcBb0C1rzvP6shEhDkJuQrcAg
bg1DnQVVadBc+nc/jdK7txLd3hUrL2zPHGDvCA+UHuVvbT9f3W0pRL5Qs4n+kVzn
J7cok2j7ub5F9GM4BcwUv8/9P8764kVkhWA7qQmXFpyFU1bSjAZAkDp92aNDDBPE
FRLt06xDd1tYABliqGe8kF23ADhoCMu3AibgCnAPuevAhWhT+zdzB9t5sZZkrJAw
k6SVKaENrCl6tf8lnbkMkua8q8ZTYmrds/pv9PdrlZZqwWEcYgx1hpRL21c1ShlA
DGU5RRH90+9zx36I7MyP
=tn23
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to