Re: [PATCH 2/3] 9pfs: Convert V9fsFidState::fid_list to QSIMPLEQ

2021-01-19 Thread Greg Kurz
On Tue, 19 Jan 2021 16:28:01 +0100 Christian Schoenebeck wrote: > On Dienstag, 19. Januar 2021 15:34:07 CET Greg Kurz wrote: > > On Tue, 19 Jan 2021 14:31:26 +0100 > > > > Christian Schoenebeck wrote: > > > On Montag, 18. Januar 2021 15:22:59 CET Greg Kurz wrote: > > > > The fid_list is current

Re: [PATCH 2/3] 9pfs: Convert V9fsFidState::fid_list to QSIMPLEQ

2021-01-19 Thread Christian Schoenebeck
On Dienstag, 19. Januar 2021 15:34:07 CET Greg Kurz wrote: > On Tue, 19 Jan 2021 14:31:26 +0100 > > Christian Schoenebeck wrote: > > On Montag, 18. Januar 2021 15:22:59 CET Greg Kurz wrote: > > > The fid_list is currently open-coded. This doesn't seem to serve any > > > purpose that cannot be met

Re: [PATCH 2/3] 9pfs: Convert V9fsFidState::fid_list to QSIMPLEQ

2021-01-19 Thread Greg Kurz
On Tue, 19 Jan 2021 14:31:26 +0100 Christian Schoenebeck wrote: > On Montag, 18. Januar 2021 15:22:59 CET Greg Kurz wrote: > > 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 all

Re: [PATCH 2/3] 9pfs: Convert V9fsFidState::fid_list to QSIMPLEQ

2021-01-19 Thread Christian Schoenebeck
On Montag, 18. Januar 2021 15:22:59 CET Greg Kurz wrote: > 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 v9

[PATCH 2/3] 9pfs: Convert V9fsFidState::fid_list to QSIMPLEQ

2021-01-18 Thread Greg Kurz
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(). Signed-off-by: Greg Kurz --- hw/9pfs