[LU-11507] lustre doesn't build against zfs master: refcount_add missing Created: 11/Oct/18 Updated: 07/Nov/18 Resolved: 06/Nov/18 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Upstream |
| Fix Version/s: | Lustre 2.12.0 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Tony Hutter | Assignee: | Tony Hutter |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Centos 7 |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Epic/Theme: | zfs | ||||||||
| Severity: | 3 | ||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||
| Description |
|
The latest lustre will not build against ZFS master: CC [M] /home/hutter/lustre-release/lustre/osd-zfs/osd_handler.o In file included from /home/hutter/lustre-release/lustre/osd-zfs/osd_handler.c:52:0: /home/hutter/lustre-release/lustre/osd-zfs/osd_internal.h: In function 'osd_sa_handle_get': /home/hutter/lustre-release/lustre/osd-zfs/osd_internal.h:929:2: error: implicit declaration of function 'refcount_add' [-Werror=implicit-function-declaration] refcount_add(&dn->dn_bonus->db_holds, osd_obj_tag); refcount_add was removed in ZFS in: Linux 4.19-rc3+ compat: Remove refcount_t compat (https://github.com/zfsonlinux/zfs/pull/7932). That patch is expected to be included in zfs-0.7.12 as well. Lustre should be updated to use zfs_refcount_add() if it exists, and then fall back to refcount_add if not. |
| Comments |
| Comment by Tony Hutter [ 11/Oct/18 ] |
|
I uploaded a patch that works for me against zfs master. It also needs https://github.com/zfsonlinux/zfs/pull/8014 to completely build. I will test it against an old zfs without that patch to test the case where zfs_refcount_add does not exist. |
| Comment by Peter Jones [ 11/Oct/18 ] |
|
Tony Can you push the patch into Gerrit so we can test/review easily and get this landed? Peter |
| Comment by Tony Hutter [ 11/Oct/18 ] |
|
Sure, I'll setup a gerrit account and I submit it |
| Comment by Gerrit Updater [ 12/Oct/18 ] |
|
Tony Hutter (hutter2@llnl.gov) uploaded a new patch: https://review.whamcloud.com/33359 |
| Comment by Gerrit Updater [ 06/Nov/18 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/33359/ |
| Comment by Peter Jones [ 06/Nov/18 ] |
|
Landed for 2.12 |
| Comment by Gerrit Updater [ 07/Nov/18 ] |
|
Nathaniel Clark (nclark@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/33605 |