]> git.ipfire.org Git - thirdparty/qemu.git/commit
9pfs: reduce latency of Twalk
authorChristian Schoenebeck <qemu_oss@crudebyte.com>
Fri, 2 Jul 2021 15:16:32 +0000 (17:16 +0200)
committerChristian Schoenebeck <qemu_oss@crudebyte.com>
Mon, 5 Jul 2021 11:03:16 +0000 (13:03 +0200)
commit8d6cb100731c4d28535adbf2a3c2d1f29be3fef4
tree6b7154b20e55cef870ecbb7cb2387bce18ce264f
parent66550339b77410212c7a99f0f80021721541b742
9pfs: reduce latency of Twalk

As with previous performance optimization on Treaddir handling;
reduce the overall latency, i.e. overall time spent on processing
a Twalk request by reducing the amount of thread hops between the
9p server's main thread and fs worker thread(s).

In fact this patch even reduces the thread hops for Twalk handling
to its theoritical minimum of exactly 2 thread hops:

main thread -> fs worker thread -> main thread

This is achieved by doing all the required fs driver tasks altogether
in a single v9fs_co_run_in_worker({ ... }); code block.

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