+static inline bool __schedI want to ask a stupid question, why a can compare with b? They are pointers of structure. Isn't stamp enough for compare?
+__ww_ctx_stamp_after(struct ww_acquire_ctx *a, struct ww_acquire_ctx *b)
+{
+ return a->stamp - b->stamp <= LONG_MAX &&
+ (a->stamp != b->stamp || a > b);