diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-06-01 18:37:10 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-06-01 18:37:10 +0200 |
commit | 356d52e1852c7bec071cb142352ce7b87eaac2f4 (patch) | |
tree | 413472c32d039190f84c4c4b7cac984ed4e306fc /libfshelp/fshelp.h | |
parent | 9e3b662812cebe8113a144c705eddbbd3855f54b (diff) | |
download | hurd-356d52e1852c7bec071cb142352ce7b87eaac2f4.tar.gz hurd-356d52e1852c7bec071cb142352ce7b87eaac2f4.tar.bz2 hurd-356d52e1852c7bec071cb142352ce7b87eaac2f4.zip |
libdiskfs: Add missing node lock around fshelp_rlock_drop_peropen call
fshelp_rlock_drop_peropen actually needs the node to be locked for
proper waiting atomicity.
Diffstat (limited to 'libfshelp/fshelp.h')
-rw-r--r-- | libfshelp/fshelp.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libfshelp/fshelp.h b/libfshelp/fshelp.h index 91bbfe50..94f7f597 100644 --- a/libfshelp/fshelp.h +++ b/libfshelp/fshelp.h @@ -295,7 +295,9 @@ error_t fshelp_rlock_po_init (struct rlock_peropen *po) #endif /* Use extern inlines. */ -/* Release all of the locks held by a given peropen. */ +/* Release all of the locks held by a given peropen. + The mutex held during fshelp_rlock_tweak calls should be also held + whenver this is called. */ error_t fshelp_rlock_drop_peropen (struct rlock_peropen *po); /* Drop the peropen identifier */ |