dm-writeboost-dkms fails to build with linux 6.1 in lunar

Bug #2006721 reported by Andrea Righi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dm-writeboost (Ubuntu)
Invalid
Undecided
Unassigned
Lunar
Invalid
Undecided
Unassigned

Bug Description

[Impact]

dm-writeboost-dkms fails to build with linux 6.1 in lunar with the following error(s):

/home/righiandr/src/dm-writeboost/src/dm-writeboost.h:506:46: error: ‘struct dm_io_request’ has no member named ‘bi_op’; did you mean ‘bi_opf’?
  506 | #define req_is_write(req) op_is_write((req)->bi_op)
      | ^~~~~
./include/linux/printk.h:429:33: note: in expansion of macro ‘req_is_write’

[Test case]

$ sudo apt install dm-writeboost-dkms

[Fix]

With kernel upstream commit 581075e4f647 ("dm/core: Reduce the size of struct dm_io_request") bi_op and bi_op_flags in struct dm_io_request have been merged together into the same attribute bi_opf, so we need to support this ABI change.

[Regression potential]

The proposed fix is only affecting kernels >= 6.0, so we may experience I/O-related regressions in recent kernels that are using dm-writeboost.

Tags: patch
Revision history for this message
Andrea Righi (arighi) wrote :

debdiff in attach allows to use dm-writeboost with linux >= 6.0.

no longer affects: nvidia-graphics-drivers-390 (Ubuntu)
tags: added: patch
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

looks like a newer version got synced from Debian which builds

Changed in dm-writeboost (Ubuntu Lunar):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.