Re: [PATCH v2 02/16] nvme-cli: add code for event and timeout handling
From: Martin Wilck <hidden>
Date: 2021-03-17 00:32:19
From: Martin Wilck <hidden>
Date: 2021-03-17 00:32:19
On Sat, 2021-03-06 at 01:36 +0100, mwilck@suse.com wrote:
From: Martin Wilck <redacted> For the nvme monitor functionality, an event handling mechanism will be necessary which deals with event timeouts. While there are standard solutions for this (e.g. libevent), these add unnecessary complexity and dependencies to nvme-cli. Add a small, straighforward event and timeout handling code based on epoll and timerfd. This code is identical to what I've pushed recently to https://github.com/mwilck/minivent, where I added a couple of unit tests to make sure the code is as robust as it needs to be.
FTR, I found a use-after-free condition in this code. It's will be fixed in the next iteration of this patch set. Martin _______________________________________________ Linux-nvme mailing list Linux-nvme@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-nvme