I see! Thanks a lot for the pointer! best, Yudong On Mon, Jul 12, 2010 at 3:07 PM, Trond Myklebust <trond.myklebust@xxxxxxxxxx> wrote: > On Mon, 2010-07-12 at 15:00 -0700, Yudong Gao wrote: >> Hi Trond, >> >> Thanks for the prompt reply! >> >> I find that in _nfs_do_open(), _nfs4_proc_open(), which do the RPC >> call to the remote server, is always called before >> nfs4_opendata_to_nfs4_state(), which will further invoke >> nfs4_try_open_cached(). >> >> Does this means that whenever is file is opened, the client always >> need to talk to the server first? > > The actual RPC call is skipped if the call to can_open_cached() succeeds > in nfs4_open_prepare(). In that case, we just grab the sequence, which > ensures that we remain serialised w.r.t. CLOSE and OPEN_DOWNGRADE calls. > > Trond > > -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html