Details
-
Bug
-
Resolution: Fixed
-
Critical
-
Upstream
-
None
-
Centos 7
-
3
-
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.
Attachments
Issue Links
- is related to
-
LU-11393 Update ZFS Version to 0.7.11
-
- Resolved
-
Activity
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Fix Version/s | New: Lustre 2.12.0 [ 13495 ] |
Assignee | Original: Nathaniel Clark [ utopiabound ] | New: Tony Hutter [ hutter ] |
Assignee | Original: WC Triage [ wc-triage ] | New: Nathaniel Clark [ utopiabound ] |
Description |
Original:
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. |
New:
The latest lustre will not build against ZFS master:
{noformat} 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); {noformat} 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. |
Attachment | New: refcount_add.diff [ 31186 ] |