File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -648,15 +648,12 @@ static struct async_poll *io_req_alloc_apoll(struct io_kiocb *req,
648
648
if (req -> flags & REQ_F_POLLED ) {
649
649
apoll = req -> apoll ;
650
650
kfree (apoll -> double_poll );
651
- } else if (!(issue_flags & IO_URING_F_UNLOCKED )) {
652
- apoll = io_alloc_cache_get (& ctx -> apoll_cache );
653
- if (!apoll )
654
- goto alloc_apoll ;
655
- apoll -> poll .retries = APOLL_MAX_RETRY ;
656
651
} else {
657
- alloc_apoll :
658
- apoll = kmalloc (sizeof (* apoll ), GFP_ATOMIC );
659
- if (unlikely (!apoll ))
652
+ if (!(issue_flags & IO_URING_F_UNLOCKED ))
653
+ apoll = io_cache_alloc (& ctx -> apoll_cache , GFP_ATOMIC , NULL );
654
+ else
655
+ apoll = kmalloc (sizeof (* apoll ), GFP_ATOMIC );
656
+ if (!apoll )
660
657
return NULL ;
661
658
apoll -> poll .retries = APOLL_MAX_RETRY ;
662
659
}
You can’t perform that action at this time.
0 commit comments