Re: NFSv4 file lock reporting interface request

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

 



On Tue, Aug 07, 2018 at 04:05:42PM -0500, Tom Tucker wrote:
> FWIW, I don't think dtrace does/did what NASA is asking for, but
> that's really irrelevant. The locks in NFSv4 are application
> specific locks, not generic kernel locks, so a service looking for
> spinlocks, mutexes, etc... wouldn't really be helpful I don't
> think.  However implementing a /sys/class, debugfs thingy that
> dumped the nfsv4 locks held is fairly simple, although I would think
> there are security implications.

We already have /proc/locks for locks taken by regular applications, it
just misses locks from nfsd.

We could extend that.  But /proc/locks has some other problems and best
is probably to make a list of those and make sure we address them all at
once.  It's a potential woodshedding exercise.  I haven't done any work
on it.

Alternatively I guess we could make a separate interface just for file
locks held by knfsd.

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