fd-tracker: remove use of VLA for unsuspendable_fd APIs
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 15 Jan 2020 23:41:34 +0000 (18:41 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 30 Jan 2020 06:55:34 +0000 (01:55 -0500)
commitb13a2b17db29cbc8808e8bb149de1692b94729d3
tree1cb4a45eee8f434277d000aa9207aa1579f0c7f8
parent7ceefac4c8474606312e25ab822e510c41a3d644
fd-tracker: remove use of VLA for unsuspendable_fd APIs

fd_tracker_open_unsuspendable_fd() and
fd_tracker_close_unsuspendable_fd() make use of variable-length arrays
to track unsuspendable entries to open/close. These uses of VLA can
easily be replaced by using dynamic allocations. This is not expected
to cause any performance problem as it is used in slow paths.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I4d4e95e23eb6df9a66663ecabad40162c321525b
src/common/fd-tracker/fd-tracker.c
This page took 0.034263 seconds and 4 git commands to generate.