Roger Larsson writes:
> Will it work correctly if 4. is done before 3. (even before 2?)
> Is it legal/good practice to unmap the file after closing it?
> (Since the sharing needs the fd to mmap it)

Dunno, haven't tried that yet.  I'll have a go tomorrow, but I think
it'll work correctly.  I'll also dig about in the VFS / NFS code some
more to see if I can find anything obvious.

> I would have expected this order:
>   A. open file
>   B. shared map file
>   C. unmap shared mapping
>   D. close file
>   E. unlink file

BTW, the program which is giving grief is good ol' sendmail, v8.11.
It does the unmap after close all over the place.
   _____
  |_____| ------------------------------------------------- ---+---+-
  |   |         Russell King        [EMAIL PROTECTED]      --- ---
  | | | | http://www.arm.linux.org.uk/personal/aboutme.html   /  /  |
  | +-+-+                                                     --- -+-
  /   |               THE developer of ARM Linux              |+| /|\
 /  | | |                                                     ---  |
    +-+-+ -------------------------------------------------  /\\\  |
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/

Reply via email to