Re: whither NFS umount?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Oct 12, 2010, at 3:52 PM, Jeff Layton wrote:

> On Tue, 12 Oct 2010 15:44:09 -0400
> Trond Myklebust <Trond.Myklebust@xxxxxxxxxx> wrote:
> 
>> On Tue, 2010-10-12 at 15:18 -0400, Jeff Layton wrote:
>> 
>>> I think the part that causes problems is having userspace do this. In
>>> theory, if the kernel were in charge of sending the UMNT, then it's not
>>> really a problem since it knows when to do it. If we have code that
>>> sends a UMNT already, why not do a best-effort UMNT call from the
>>> kernel when we tear down the sb?
>> 
>> Purely for the pleasure of allowing the server to maintain inaccurate
>> statistics about who is currently mounting what? I think not...
>> 
>> You can get far more accurate results by replacing the MNT/UMNT state
>> counter with a purely server-based scheme to track who accessed one or
>> more files on each exported partition in the past 5 minutes or so. That
>> would even work with NFSv4...
>> 
> 
> True, but for better or worse, UMNT is part of the protocol. It seems
> like we ought to do our best to implement it, even if it is
> fundamentally flawed.

I would like to see the kernel send UMNT, but I don't have a strong technical reason for it.  It's just a best-effort kind of thing.  Besides, we should be conservative in what we send (ie follow the protocol as closely as possible), and liberal in what we receive.

In any event, whether the kernel sends a UMNT or no-one does, we can rip it out of umount.nfs now, I think.

-- 
chuck[dot]lever[at]oracle[dot]com




--
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


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux