On Fri, 23 Mar 2001, Danilov Nikita wrote:
> > Yes. And if after sleeping in read() you try to access the superblock again
> > you will find that it's not there.
>
> Ok, so it wouldn't work for the complex entries providing services like
> plan9 file servers, but use for simple statistics reports, etc. is ok as
> far as they write data into kernel page allocated by proc_file_read()
> and don't sleep, right? (I just need your sanction :).
Umm... Probably that's OK, but I would be really careful about that.
You should also make sure that window between the beginning of
your put_super() and calling the remove_proc_entry() is safe. And
keep in mind that ->s_root goes away before ->put_super() is called,
so don't rely on its presense.
I'm not saying that it can't be done or that it simple cases do not
exist. But the whole approach looks like a bad idea - too many things
you need to take care of to avoid screwups.
Cheers,
Al
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to [EMAIL PROTECTED]