bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 4/4] rumpdisk: Don't pretend to be the arbiter anymore


From: Samuel Thibault
Subject: Re: [PATCH 4/4] rumpdisk: Don't pretend to be the arbiter anymore
Date: Tue, 2 Mar 2021 22:43:22 +0100
User-agent: NeoMutt/20170609 (1.8.3)

Damien Zammit, le mar. 02 mars 2021 22:41:37 +1100, a ecrit:
> --- a/rumpdisk/block-rump.c
> +++ b/rumpdisk/block-rump.c
> @@ -164,6 +165,15 @@ rumpdisk_device_init (void)
>         return;
>       }
>      }
> +
> +  /* FIXME: need to synchronise with arbiter to wait for fsys_startup */
> +  sleep(1);

I guess you would just need a pthread_cond_wait here and a
pthread_cond_signal in some fsys_ server function?

> +  task_get_bootstrap_port (mach_task_self (), &bootport);
> +  fsys_getpriv (bootport, &_hurd_host_priv, &_hurd_device_master, &fstask);


Samuel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]