Hello,
On Thu, Dec 24, 2009 at 05:52:48PM +0800, Da Zheng wrote:
> Sergiu Ivanov wrote:
>
> > On Wed, Dec 23, 2009 at 08:52:33AM +0800, Da Zheng wrote:
> >> netfs_attempt_lookup locks this node and the node is unlocked by
> >> libnetfs, right? I forget a lot:-) So why can the second lookup not
> >
Sergiu Ivanov wrote:
> Hello,
>
> On Wed, Dec 23, 2009 at 08:52:33AM +0800, Da Zheng wrote:
>> netfs_attempt_lookup locks this node and the node is unlocked by
>> libnetfs, right? I forget a lot:-) So why can the second lookup not
>> wait until the first one finishes?
>
> I've tried to remove the
Hello,
On Wed, Dec 23, 2009 at 08:52:33AM +0800, Da Zheng wrote:
> netfs_attempt_lookup locks this node and the node is unlocked by
> libnetfs, right? I forget a lot:-) So why can the second lookup not
> wait until the first one finishes?
I've tried to remove the mutex unlocking code and it seems
Sergiu Ivanov wrote:
> Hello,
>
> On Tue, Dec 22, 2009 at 07:37:21PM +0800, Da Zheng wrote:
>> Sergiu Ivanov wrote:
>>> @@ -85,6 +89,18 @@ new_node (struct lnode *ln, struct node **np)
>>> struct node *
>>> lookup (char *name)
>>> {
>>> + if (strcmp(name, MASTER_NODE_NAME) == 0)
>>> +{
>>>
Hello,
On Tue, Dec 22, 2009 at 07:37:21PM +0800, Da Zheng wrote:
> Sergiu Ivanov wrote:
> > @@ -85,6 +89,18 @@ new_node (struct lnode *ln, struct node **np)
> > struct node *
> > lookup (char *name)
> > {
> > + if (strcmp(name, MASTER_NODE_NAME) == 0)
> > +{
> > + netfs_nref (master_n
Hi,
Sergiu Ivanov wrote:
> diff --git a/eth-multiplexer/netfs_impl.c b/eth-multiplexer/netfs_impl.c
> index c70701b..875ff48 100644
> --- a/eth-multiplexer/netfs_impl.c
> +++ b/eth-multiplexer/netfs_impl.c
> @@ -31,6 +31,10 @@
> #include "vdev.h"
> #include "util.h"
>
> +/* The .MASTER node wh