9pfs: Convert V9fsFidState::fid_list to QSIMPLEQ
commitfeabd6cf78ca3b57da2ce48e95b704e72147bf2c
authorGreg Kurz <groug@kaod.org>
Mon, 18 Jan 2021 14:22:59 +0000 (18 15:22 +0100)
committerGreg Kurz <groug@kaod.org>
Thu, 21 Jan 2021 16:49:45 +0000 (21 17:49 +0100)
treee17c398181af7c2749ca769fe0e5a33517b60248
parent2e53160fc62d4d59c76bf93c7a90bd739b8b8157
9pfs: Convert V9fsFidState::fid_list to QSIMPLEQ

The fid_list is currently open-coded. This doesn't seem to serve any
purpose that cannot be met with QEMU's generic lists. Let's go for a
QSIMPLEQ : this will allow to add new fids at the end of the list and
to improve the logic in v9fs_mark_fids_unreclaim().

Reviewed-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
Message-Id: <20210118142300.801516-3-groug@kaod.org>
Signed-off-by: Greg Kurz <groug@kaod.org>
hw/9pfs/9p.c
hw/9pfs/9p.h