diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-02-22 04:07:17 -0700 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-04-05 21:34:27 -0600 |
commit | 45f90d1bf6a5f974ed8bc62b6838b5d2e906a3f8 (patch) | |
tree | ed7e41b3408118c91454fb36ce9b681859143e47 | |
parent | 8a39cfe7f245bea8b3a458238b694de13c61b88a (diff) |
lib9p: srv: Add comments about safety things to do
-rw-r--r-- | lib9p/srv.c | 4 |
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) { |