From 45f90d1bf6a5f974ed8bc62b6838b5d2e906a3f8 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Sat, 22 Feb 2025 04:07:17 -0700 Subject: lib9p: srv: Add comments about safety things to do --- lib9p/srv.c | 4 ++++ 1 file changed, 4 insertions(+) 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) { -- cgit v1.2.3-2-g168b