* util/async: File descriptor leak in aio_context_unref()?
@ 2020-01-19 8:14 Tuguoyi
0 siblings, 0 replies; 2+ messages in thread
From: Tuguoyi @ 2020-01-19 8:14 UTC (permalink / raw)
To: Stefan Hajnoczi, Fam Zheng, qemu-block@nongnu.org
Cc: Wangyongqing, Wangyong, Changlimin, qemu-devel@nongnu.org,
Chengchiwen
In aio_context_new(), the @notifier variable will be initialized, but it
don't get cleaned up in aio_context_unref() when reference count reaches
to 0, it will cause file descriptor leak.
--
Best regards,
Guoyi
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: util/async: File descriptor leak in aio_context_unref()?
@ 2020-01-19 8:57 Tuguoyi
0 siblings, 0 replies; 2+ messages in thread
From: Tuguoyi @ 2020-01-19 8:57 UTC (permalink / raw)
To: Stefan Hajnoczi, Fam Zheng, qemu-block@nongnu.org
Cc: Wangyongqing, Wangyong, Changlimin, qemu-devel@nongnu.org,
Chengchiwen
OK, I got it, it will be released in aio_ctx_finalize().
Please ignore this mail.
> -----Original Message-----
> From: tuguoyi (Cloud)
> Sent: Sunday, January 19, 2020 4:15 PM
> To: 'Stefan Hajnoczi' <stefanha@redhat.com>; 'Fam Zheng'
> <fam@euphon.net>; 'qemu-block@nongnu.org' <qemu-block@nongnu.org>
> Cc: 'qemu-devel@nongnu.org' <qemu-devel@nongnu.org>; changlimin (Cloud)
> <changlimin@h3c.com>; chengchiwen (Cloud) <chengchiwen@h3c.com>;
> wangyongqing (Cloud) <w_yongqing@h3c.com>; wangyong (Cloud)
> <wang.yongD@h3c.com>
> Subject: util/async: File descriptor leak in aio_context_unref()?
>
> In aio_context_new(), the @notifier variable will be initialized, but it
> don't get cleaned up in aio_context_unref() when reference count reaches
> to 0, it will cause file descriptor leak.
> --
> Best regards,
> Guoyi
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-01-19 9:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-19 8:57 util/async: File descriptor leak in aio_context_unref()? Tuguoyi
-- strict thread matches above, loose matches on Subject: below --
2020-01-19 8:14 Tuguoyi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).