Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

io_uring/poll: improve readability of poll reference decrementing

This overly long line is hard to read. Break it up by AND'ing the
ref mask first, then perform the atomic_sub_return() with the value
itself.

Signed-off-by: Jens Axboe <axboe@kernel.dk>

+2 -2
+2 -2
io_uring/poll.c
··· 343 343 * Release all references, retry if someone tried to restart 344 344 * task_work while we were executing it. 345 345 */ 346 - } while (atomic_sub_return(v & IO_POLL_REF_MASK, &req->poll_refs) & 347 - IO_POLL_REF_MASK); 346 + v &= IO_POLL_REF_MASK; 347 + } while (atomic_sub_return(v, &req->poll_refs) & IO_POLL_REF_MASK); 348 348 349 349 return IOU_POLL_NO_ACTION; 350 350 }