File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 110110#define SQE_VALID_FLAGS (SQE_COMMON_FLAGS | IOSQE_BUFFER_SELECT | \
111111 IOSQE_IO_DRAIN | IOSQE_CQE_SKIP_SUCCESS)
112112
113+ #define IO_REQ_LINK_FLAGS (REQ_F_LINK | REQ_F_HARDLINK)
114+
113115#define IO_REQ_CLEAN_FLAGS (REQ_F_BUFFER_SELECTED | REQ_F_NEED_CLEANUP | \
114116 REQ_F_POLLED | REQ_F_INFLIGHT | REQ_F_CREDS | \
115117 REQ_F_ASYNC_DATA)
116118
117- #define IO_REQ_CLEAN_SLOW_FLAGS (REQ_F_REFCOUNT | REQ_F_LINK | REQ_F_HARDLINK | \
119+ #define IO_REQ_CLEAN_SLOW_FLAGS (REQ_F_REFCOUNT | IO_REQ_LINK_FLAGS | \
118120 REQ_F_REISSUE | IO_REQ_CLEAN_FLAGS)
119121
120122#define IO_TCTX_REFS_CACHE_NR (1U << 10)
@@ -131,7 +133,6 @@ struct io_defer_entry {
131133
132134/* requests with any of those set should undergo io_disarm_next() */
133135#define IO_DISARM_MASK (REQ_F_ARM_LTIMEOUT | REQ_F_LINK_TIMEOUT | REQ_F_FAIL)
134- #define IO_REQ_LINK_FLAGS (REQ_F_LINK | REQ_F_HARDLINK)
135136
136137/*
137138 * No waiters. It's larger than any valid value of the tw counter
@@ -1157,7 +1158,7 @@ static inline void io_req_local_work_add(struct io_kiocb *req,
11571158 * We don't know how many reuqests is there in the link and whether
11581159 * they can even be queued lazily, fall back to non-lazy.
11591160 */
1160- if (req -> flags & ( REQ_F_LINK | REQ_F_HARDLINK ) )
1161+ if (req -> flags & IO_REQ_LINK_FLAGS )
11611162 flags &= ~IOU_F_TWQ_LAZY_WAKE ;
11621163
11631164 guard (rcu )();
You can’t perform that action at this time.
0 commit comments