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: add req flag invariant build assertion

We're caching some of file related request flags in a tricky way, put
a build check to make sure flags don't get reshuffled.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/9877577b83c25dd78224a8274f799187e7ec7639.1743407551.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Pavel Begunkov and committed by
Jens Axboe
697b2876 f28a71bc

+2
+2
io_uring/io_uring.c
··· 1643 1643 { 1644 1644 io_req_flags_t res = 0; 1645 1645 1646 + BUILD_BUG_ON(REQ_F_ISREG_BIT != REQ_F_SUPPORT_NOWAIT_BIT + 1); 1647 + 1646 1648 if (S_ISREG(file_inode(file)->i_mode)) 1647 1649 res |= REQ_F_ISREG; 1648 1650 if ((file->f_flags & O_NONBLOCK) || (file->f_mode & FMODE_NOWAIT))