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/register: have io_parse_restrictions() set restrictions enabled

Rather than leave this to the caller, have io_parse_restrictions() set
->registered = true if restrictions have been enabled. This is in
preparation for having finer grained restrictions.

Reviewed-by: Gabriel Krisman Bertazi <krisman@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

+1 -1
+1 -1
io_uring/register.c
··· 150 150 } 151 151 } 152 152 ret = nr_args; 153 + restrictions->registered = true; 153 154 err: 154 155 kfree(res); 155 156 return ret; ··· 175 174 memset(&ctx->restrictions, 0, sizeof(ctx->restrictions)); 176 175 return ret; 177 176 } 178 - ctx->restrictions.registered = true; 179 177 return 0; 180 178 } 181 179