9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] p9p acme freezes when ctrl-f inside its mounted directory
@ 2009-08-04 17:33 Rudolf Sykora
  2009-08-04 23:49 ` Russ Cox
  0 siblings, 1 reply; 3+ messages in thread
From: Rudolf Sykora @ 2009-08-04 17:33 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hello,

I noticed that when running acme in plan9port and having its
directories mounted say on /mnt/acme, then if I try from within a win
window in the acme to auto-complete a directory name---I am in /mnt, I
type 'a' and hit the 'insert' key or ctrl-f, or I am anywhere inside
the acme filesystem---the program freezes (though, if I write it
myself, I can cd to the acme directory).

Am I doing sth wrong or it shouldn't do so?

Thanks
Ruda



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [9fans] p9p acme freezes when ctrl-f inside its mounted directory
  2009-08-04 17:33 [9fans] p9p acme freezes when ctrl-f inside its mounted directory Rudolf Sykora
@ 2009-08-04 23:49 ` Russ Cox
  2009-08-05  7:48   ` Rudolf Sykora
  0 siblings, 1 reply; 3+ messages in thread
From: Russ Cox @ 2009-08-04 23:49 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Tue, Aug 4, 2009 at 10:33 AM, Rudolf Sykora<rudolf.sykora@gmail.com> wrote:
> I noticed that when running acme in plan9port and having its
> directories mounted say on /mnt/acme, then if I try from within a win
> window in the acme to auto-complete a directory name---I am in /mnt, I
> type 'a' and hit the 'insert' key or ctrl-f, or I am anywhere inside
> the acme filesystem---the program freezes (though, if I write it
> myself, I can cd to the acme directory).

The problem is that acme is basically a single
operating system thread, and that operating system
thread is trying to look in /mnt/acme.  To serve that
request, the kernel has posted a FUSE message to
acme to handle, which acme will get around to just as
soon as the system call in /mnt/acme finishes.
Deadlock.

This is not a problem on Plan 9 because acme does
not put itself in its own name space.  On Linux, where
there is just one big name space, more care is necessary
(and not implemented).

Russ


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [9fans] p9p acme freezes when ctrl-f inside its mounted directory
  2009-08-04 23:49 ` Russ Cox
@ 2009-08-05  7:48   ` Rudolf Sykora
  0 siblings, 0 replies; 3+ messages in thread
From: Rudolf Sykora @ 2009-08-05  7:48 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

2009/8/5 Russ Cox <rsc@swtch.com>:
> On Tue, Aug 4, 2009 at 10:33 AM, Rudolf Sykora<rudolf.sykora@gmail.com> wrote:
>> I noticed that when running acme in plan9port and having its
>> directories mounted say on /mnt/acme, then if I try from within a win
>> window in the acme to auto-complete a directory name---I am in /mnt, I
>> type 'a' and hit the 'insert' key or ctrl-f, or I am anywhere inside
>> the acme filesystem---the program freezes (though, if I write it
>> myself, I can cd to the acme directory).
>
> The problem is that acme is basically a single
> operating system thread, and that operating system
> thread is trying to look in /mnt/acme.  To serve that
> request, the kernel has posted a FUSE message to
> acme to handle, which acme will get around to just as
> soon as the system call in /mnt/acme finishes.
> Deadlock.
>
> This is not a problem on Plan 9 because acme does
> not put itself in its own name space.  On Linux, where
> there is just one big name space, more care is necessary
> (and not implemented).
>
> Russ
>
>

Thanks for the explanation!
R



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-08-05  7:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-04 17:33 [9fans] p9p acme freezes when ctrl-f inside its mounted directory Rudolf Sykora
2009-08-04 23:49 ` Russ Cox
2009-08-05  7:48   ` Rudolf Sykora

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).