[dm-devel] [PATCH] multipathd: Change four threads from detached into joinable

Christophe Varoqui christophe.varoqui at opensvc.com
Mon Aug 29 07:22:58 UTC 2016


Merged.
Thanks.

On Fri, Aug 19, 2016 at 12:44 AM, Bart Van Assche <
bart.vanassche at sandisk.com> wrote:

> Change the CLI listener, checker loop, uevent dispatcher and
> uevent listener threads from detached into joinable threads.
> This change is needed because calling pthread_join() is only
> allowed for joinable threads.
>
> Signed-off-by: Bart Van Assche <bart.vanassche at sandisk.com>
> Acked-by: dragan.stancevic at canonical.com
> ---
>  multipathd/main.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/multipathd/main.c b/multipathd/main.c
> index 2be6cb2..6b3c856 100644
> --- a/multipathd/main.c
> +++ b/multipathd/main.c
> @@ -2216,8 +2216,8 @@ child (void * param)
>         signal_init();
>         rcu_init();
>
> -       setup_thread_attr(&misc_attr, 64 * 1024, 1);
> -       setup_thread_attr(&uevent_attr, DEFAULT_UEVENT_STACKSIZE * 1024,
> 1);
> +       setup_thread_attr(&misc_attr, 64 * 1024, 0);
> +       setup_thread_attr(&uevent_attr, DEFAULT_UEVENT_STACKSIZE * 1024,
> 0);
>         setup_thread_attr(&waiter_attr, 32 * 1024, 1);
>
>         if (logsink == 1) {
> --
> 2.9.2
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20160829/9117d02a/attachment.htm>


More information about the dm-devel mailing list