Skip to content

Commit

Permalink
DAOS-14725 client: redefine daos_event_t to avoid compatibility issues
Browse files Browse the repository at this point in the history
Reuse the space hole (for 64-bits alignment) in daos_event_t structure
as new filed "ev_abort" that is only used for DAOS test internally.

Signed-off-by: Fan Yong <[email protected]>
  • Loading branch information
Nasf-Fan committed Dec 22, 2023
1 parent f628067 commit cfc92e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/include/daos_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,14 @@ typedef d_iov_t daos_key_t;
typedef struct daos_event {
/** return code of non-blocking operation */
int ev_error;
/** Abort the task(s) related with the event queue. Only used for DAOS test internally. */
uint32_t ev_abort:1;
/** Internal use - 152 + 8 bytes pad for pthread_mutex_t size difference on __aarch64__ */
struct {
uint64_t space[20];
} ev_private;
/** Used for debugging */
uint32_t ev_debug;
/** Abort the task(s) related with the event queue. */
uint32_t ev_abort:1;
uint64_t ev_debug;
} daos_event_t;

/** Wait for completion event forever */
Expand Down

0 comments on commit cfc92e0

Please sign in to comment.