summaryrefslogtreecommitdiff
path: root/lib9p/srv.c
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-02-22 04:07:17 -0700
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-04-05 21:34:27 -0600
commit45f90d1bf6a5f974ed8bc62b6838b5d2e906a3f8 (patch)
treeed7e41b3408118c91454fb36ce9b681859143e47 /lib9p/srv.c
parent8a39cfe7f245bea8b3a458238b694de13c61b88a (diff)
lib9p: srv: Add comments about safety things to do
Diffstat (limited to 'lib9p/srv.c')
-rw-r--r--lib9p/srv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib9p/srv.c b/lib9p/srv.c
index 12556b0..a425dc9 100644
--- a/lib9p/srv.c
+++ b/lib9p/srv.c
@@ -966,6 +966,8 @@ static void handle_Tread(struct _lib9p_srv_req *ctx,
struct lib9p_msg_Rread *resp) {
util_handler_common(ctx, req, resp);
+ /* TODO: serialize simultaneous reads to the same FID */
+
/* Check that the FID is valid for this. */
struct _srv_fidinfo *fidinfo = fidmap_load(&ctx->parent_sess->fids, req->fid);
if (!fidinfo) {
@@ -1028,6 +1030,8 @@ static void handle_Twrite(struct _lib9p_srv_req *ctx,
struct lib9p_msg_Rwrite *resp) {
util_handler_common(ctx, req, resp);
+ /* TODO: serialize simultaneous writes to the same FID */
+
/* Check that the FID is valid for this. */
struct _srv_fidinfo *fidinfo = fidmap_load(&ctx->parent_sess->fids, req->fid);
if (!fidinfo) {