Re: nfsd readahead

From: Colin Gibbs
Date: Mon May 31 2004 - 21:02:30 EST


On Mon, 2004-05-31 at 18:52, Neil Brown wrote:

> Thanks a lot Colin. (I did get your earlier person email, but it
> didn't get to the top of the priority queue until today).

Well I sent it to the nfs list first (it seems to have been eaten by
some moderation queue) and forgot I also sent it to you.

> The current code is a bit of a mess isn't it!!!
>
> I have one question about your patch:
>
> > + file_ra_state_init(&ra->p_ra, file->f_mapping);
>
> I note that the corresponding code in fs/open.c(dentry_open) reads
>
> file_ra_state_init(&f->f_ra, f->f_mapping->host->i_mapping);
>
> i.e. there is an extra level of indirection. Is there a reason that
> you didn't copy that.

Looks like that was in a patch after 2.6.6. Another good reason to avoid
duplicate code paths.

> I am seriously thinking of getting rid of the "open_private_file"
> stuff, and using dentry_open to open files for nfsd, and just allow it
> to init the ra_state, so that nfsd doesn't do it itself.
> However that patch touches 13 files, so I want to see it get a bit of
> testing first.
>
> Thanks again,
> I'll make sure this fix gets through Andrew to Linus,
>
> NeilBrown

Thanks for taking care of this.


Colin
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/