aboutsummaryrefslogtreecommitdiff
path: root/rumpdisk
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-11-14 12:07:50 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-11-14 12:07:50 +0100
commitd0b4ebca3ac6aab7b5aff7d9cd604984169a796b (patch)
tree53cbd9264d152384c211f2947ca001dbd0f92145 /rumpdisk
parent30b3297d71fa947c66f74c12629895ad20800991 (diff)
downloadhurd-d0b4ebca3ac6aab7b5aff7d9cd604984169a796b.tar.gz
hurd-d0b4ebca3ac6aab7b5aff7d9cd604984169a796b.tar.bz2
hurd-d0b4ebca3ac6aab7b5aff7d9cd604984169a796b.zip
rumpdisk: Comment on thread-safety requirements
Diffstat (limited to 'rumpdisk')
-rw-r--r--rumpdisk/block-rump.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/rumpdisk/block-rump.c b/rumpdisk/block-rump.c
index f7444260..afd91d49 100644
--- a/rumpdisk/block-rump.c
+++ b/rumpdisk/block-rump.c
@@ -335,6 +335,9 @@ device_get_status (void *d, dev_flavor_t flavor, dev_status_t status,
* Short term strategy:
*
* Make device_read/write multithreaded.
+ * Note: this would require an rwlock between device_open/close/read/write, to
+ * protect against e.g. concurrent open, unexpected close while read/write is
+ * called, etc.
*
* Long term strategy:
*