Commit 45cdb282 authored by Xin Zhao's avatar Xin Zhao Committed by Pavan Balaji
Browse files

Change name from data_size to buf_size.



When the lock is not satisfied, we queue up
the lock request and op data in a lock entry
queue. In the struct of lock entry, we use 'data_size'
to remember the size of buffer for storing the
data. Since the size of buffer is not type_size*count
but might be type_extent*extent, here we change
its name from 'data_size' to 'buf_size'.
Signed-off-by: Pavan Balaji's avatarPavan Balaji <balaji@anl.gov>
parent ce8bc310
......@@ -34,7 +34,7 @@ static inline MPIDI_RMA_Lock_entry_t *MPIDI_CH3I_Win_lock_entry_alloc(MPID_Win *
MPIU_Memcpy(&(new_ptr->pkt), pkt, sizeof(*pkt));
new_ptr->vc = NULL;
new_ptr->data = NULL;
new_ptr->data_size = 0;
new_ptr->buf_size = 0;
new_ptr->all_data_recved = 0;
}
......@@ -53,7 +53,7 @@ static inline int MPIDI_CH3I_Win_lock_entry_free(MPID_Win * win_ptr,
int mpi_errno = MPI_SUCCESS;
if (lock_entry->data != NULL) {
win_ptr->current_lock_data_bytes -= lock_entry->data_size;
win_ptr->current_lock_data_bytes -= lock_entry->buf_size;
MPIU_Free(lock_entry->data);
}
......
......@@ -133,7 +133,7 @@ typedef struct MPIDI_RMA_Lock_entry {
MPIDI_CH3_Pkt_t pkt; /* all information for this request packet */
MPIDI_VC_t *vc;
void *data; /* for queued PUTs / ACCs / GACCs, data is copied here */
int data_size;
int buf_size;
int all_data_recved; /* indicate if all data has been received */
} MPIDI_RMA_Lock_entry_t;
......
......@@ -418,7 +418,7 @@ static inline int enqueue_lock_origin(MPID_Win * win_ptr, MPIDI_VC_t * vc,
}
else {
win_ptr->current_lock_data_bytes += buf_size;
new_ptr->data_size = buf_size;
new_ptr->buf_size = buf_size;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment