On Tue, Jul 01, 2003 at 06:41:26PM +0200, Frank A. Uepping wrote: > this maps to the system call close(). > May release() block? > Any misgivings doing so()? It's called _after_ _last_ close, just before the file structure is freed. See Documentation/filesystems/Locking for locking scheme (and possibility to block). (Yes, it can block and IIRC does block for some filesystems). Well, actualy it's called from last close, but since it's the last close only, it's too late for everything. You simply must release the descriptor. If you want to know what is called in every close, it's ->fsync. ------------------------------------------------------------------------------- Jan 'Bulb' Hudec <bulb@ucw.cz> -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/