Re: [PATCH] rumpdisk: Protect device_open/close and r/w with a mutex for threading

2022-02-26 Thread Samuel Thibault
Damien Zammit, le sam. 26 févr. 2022 06:29:21 +, a ecrit: > @@ -233,22 +246,32 @@ rumpdisk_device_open (mach_port_t reply_port, > mach_msg_type_name_t reply_port_ty >bd = search_bd (name); You also need to protect the list, against concurrent addition of elements. > @@ -296,6 +323,8 @@ r

[PATCH] rumpdisk: Protect device_open/close and r/w with a mutex for threading

2022-02-25 Thread Damien Zammit
Prepare for multithreading of rumpdisk by protecting critical paths from concurrent access. TESTED to still boot via rump with this change even though multithread is not yet enabled. --- rumpdisk/block-rump.c | 63 --- 1 file changed, 53 insertions(+), 10