Motr  M0
m0_rm_reserve_prio Struct Reference

#include <rm.h>

Collaboration diagram for m0_rm_reserve_prio:
Collaboration graph

Data Fields

m0_time_t rrp_time
 
struct m0_fid rrp_owner
 
uint64_t rrp_seq
 

Detailed Description

Structure that determines reserve priority of the request.

If there are several requests willing to reserve the same credit, then following rules apply:

  • request with smallest timestamp has highest priority;
  • if timestamps are equal, then request with smaller owner FID has higher priority.
  • if timestamps and owner FIDs are equal, then request with smaller sequence number has higher priority.
See also
m0_rm_incoming

Definition at line 1247 of file rm.h.

Field Documentation

◆ rrp_owner

struct m0_fid rrp_owner

Owner of the original request.

Definition at line 1255 of file rm.h.

◆ rrp_seq

uint64_t rrp_seq

Sequence number of the original request. It is a counter maintained by an owner and incremented for every incoming local request.

Normally all local request timestamps for one owner are different, because requests are added under lock. They can be equal because of HW clock inaccuracy and sequence number is used in this case.

Definition at line 1265 of file rm.h.

◆ rrp_time

m0_time_t rrp_time

Timestamp of the original request.

Definition at line 1251 of file rm.h.


The documentation for this struct was generated from the following file: