io_uring-6.3-2023-04-14
-----BEGIN PGP SIGNATURE----- iQJEBAABCAAuFiEEwPw5LcreJtl1+l5K99NY+ylx4KYFAmQ6HP4QHGF4Ym9lQGtl cm5lbC5kawAKCRD301j7KXHgpiuxD/wMRoH/NfgJy1QsnXaelZihWeKx7ywsFiwd 0EXmNClOae0Lwvn6wmIYYsBCIeK7Np0WAhAQzpfxPBPr8twnV0ZIpSMIBUjFyt01 u0LEeYA/Sjy7WRKAd2SFHiEREM45Vxvp3suaw1gGNhanfL5FfnwmGO+GTY9tIAzz P5QEhA7kOho/rfx/4L0gze1K2hGFkd1C8ezJq5KRZd2EMUT45UIhHNoOwQaM7DHQ GWRoVCFREMdA+xyOZ+4xTWXrd3R3ptE02b5vIwCw+y4hNxQHUaLWlu427zlL4ozb QR7i6y1wtVDiTfBiuBY36qX6Ne84aAsNWqaRvwmcCl0VfGsQOpHtjs4eQWYVLeUB 3+7tUgGtXaBWMB9hCoOsnuQq2m7vuV56ECgufvpKUaoz9KUuAaWo3MgB157ORME3 +Va9R7HhjNtUpP1tPS5w6ljTRWngVcp8rdwWt+2mrlsmFQlqjppl5fOBTPqIA6+k WVj+0S9pJXHAEveFeJ3SqyjQfDuPw1o9mxinczNle/gKaFqjX2tQfmQgNATgiIDD kNSW3Bccw7LWKTScklzMtyowMLoonrfveqqH3QKmVm5K+zFEULWfZqFNlVoqGrYi qF4pCEIPF/FxrpEvQP1Bp04ZH4qJpGrjuhhJke4kjB9DGRDv6T6m8EzKWkWuFlDH i18gYxJG/w== =pzRD -----END PGP SIGNATURE----- Merge tag 'io_uring-6.3-2023-04-14' of git://git.kernel.dk/linux Pull io_uring fix from Jens Axboe: "Just a small tweak to when task_work needs redirection, marked for stable as well" * tag 'io_uring-6.3-2023-04-14' of git://git.kernel.dk/linux: io_uring: complete request via task work in case of DEFER_TASKRUN
This commit is contained in:
commit
1c6492d646
|
@ -998,7 +998,7 @@ static void __io_req_complete_post(struct io_kiocb *req)
|
||||||
|
|
||||||
void io_req_complete_post(struct io_kiocb *req, unsigned issue_flags)
|
void io_req_complete_post(struct io_kiocb *req, unsigned issue_flags)
|
||||||
{
|
{
|
||||||
if (req->ctx->task_complete && (issue_flags & IO_URING_F_IOWQ)) {
|
if (req->ctx->task_complete && req->ctx->submitter_task != current) {
|
||||||
req->io_task_work.func = io_req_task_complete;
|
req->io_task_work.func = io_req_task_complete;
|
||||||
io_req_task_work_add(req);
|
io_req_task_work_add(req);
|
||||||
} else if (!(issue_flags & IO_URING_F_UNLOCKED) ||
|
} else if (!(issue_flags & IO_URING_F_UNLOCKED) ||
|
||||||
|
|
Loading…
Reference in New Issue