Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Commit

Permalink
fixup! [LibOS] Implement POSIX locks (fcntl)
Browse files Browse the repository at this point in the history
Signed-off-by: Paweł Marczewski <pawel@invisiblethingslab.com>
  • Loading branch information
pwmarcz committed Jul 2, 2021
1 parent 0ee10e2 commit 3b524d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LibOS/shim/src/fs/shim_fs_lock.c
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ int posix_lock_set(struct shim_dentry* dent, struct posix_lock* pl, bool wait) {
if (ret < 0)
goto out;
if (req) {
/* `posix_lock_add_request` is allowed to add a request only if `wait` is true */
/* `posix_lock_set_or_add_request` is allowed to add a request only if `wait` is true */
assert(wait);

int result;
Expand Down Expand Up @@ -520,7 +520,7 @@ int posix_lock_set_from_ipc(const char* path, struct posix_lock* pl, bool wait,
goto out;

if (req) {
/* `posix_lock_add_request` is allowed to add a request only if `wait` is true */
/* `posix_lock_set_or_add_request` is allowed to add a request only if `wait` is true */
assert(wait);

req->notify.vmid = vmid;
Expand Down

0 comments on commit 3b524d2

Please sign in to comment.