We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e58d0a commit 2e730d8Copy full SHA for 2e730d8
io_uring/notif.c
@@ -12,13 +12,12 @@
12
void io_notif_tw_complete(struct io_kiocb *notif, struct io_tw_state *ts)
13
{
14
struct io_notif_data *nd = io_notif_to_data(notif);
15
- struct io_ring_ctx *ctx = notif->ctx;
16
17
if (unlikely(nd->zc_report) && (nd->zc_copied || !nd->zc_used))
18
notif->cqe.res |= IORING_NOTIF_USAGE_ZC_COPIED;
19
20
- if (nd->account_pages && ctx->user) {
21
- __io_unaccount_mem(ctx->user, nd->account_pages);
+ if (nd->account_pages && notif->ctx->user) {
+ __io_unaccount_mem(notif->ctx->user, nd->account_pages);
22
nd->account_pages = 0;
23
}
24
io_req_task_complete(notif, ts);
0 commit comments