Re: [PATCH 1/2] hw/9pfs: avoid 'path' copy in v9fs_walk()

2021-08-20 Thread Christian Schoenebeck
On Freitag, 20. August 2021 12:35:49 CEST Greg Kurz wrote: > On Tue, 17 Aug 2021 14:38:24 +0200 > > Christian Schoenebeck wrote: > > The v9fs_walk() function resolves all client submitted path nodes to the > > local 'pathes' array. Using a separate string scalar variable 'path' > > inside the bac

Re: [PATCH 1/2] hw/9pfs: avoid 'path' copy in v9fs_walk()

2021-08-20 Thread Greg Kurz
On Tue, 17 Aug 2021 14:38:24 +0200 Christian Schoenebeck wrote: > The v9fs_walk() function resolves all client submitted path nodes to the > local 'pathes' array. Using a separate string scalar variable 'path' > inside the background worker thread loop and copying that local 'path' > string scala

[PATCH 1/2] hw/9pfs: avoid 'path' copy in v9fs_walk()

2021-08-17 Thread Christian Schoenebeck
The v9fs_walk() function resolves all client submitted path nodes to the local 'pathes' array. Using a separate string scalar variable 'path' inside the background worker thread loop and copying that local 'path' string scalar variable subsequently to the 'pathes' array (at the end of each loop ite