We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 221dbe5 + 326941b commit 02a6073Copy full SHA for 02a6073
1 file changed
io_uring/poll.c
@@ -93,7 +93,7 @@ static bool io_poll_get_ownership_slowpath(struct io_kiocb *req)
93
*/
94
static inline bool io_poll_get_ownership(struct io_kiocb *req)
95
{
96
- if (unlikely(atomic_read(&req->poll_refs) >= IO_POLL_REF_BIAS))
+ if (unlikely((unsigned int)atomic_read(&req->poll_refs) >= IO_POLL_REF_BIAS))
97
return io_poll_get_ownership_slowpath(req);
98
return !(atomic_fetch_inc(&req->poll_refs) & IO_POLL_REF_MASK);
99
}
0 commit comments