Re: pthread_mutex misusage in glusterd_op_sm

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

 



Krishnan Parthasarathi <kparthas@xxxxxxxxxx> wrote:

> Could you explain which sequence of function calls lead to
> mutex lock and mutex unlock being called by different threads?
> Meanwhile, I am trying to find one such sequence to understand
> the problem better.

In the middle of the function is the handler call:
                        handler = state[event_type].handler;
                        GF_ASSERT (handler);
        
                        ret = handler (event, event->ctx);

Between the call and the return, the current task may have moved to a
different thread. I guess handler must send a network request, and the
ability to return in a different thread is normal synctask at work.

-- 
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
manu@xxxxxxxxxx
_______________________________________________
Gluster-devel mailing list
Gluster-devel@xxxxxxxxxxx
http://supercolony.gluster.org/mailman/listinfo/gluster-devel




[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux