[moving to ceph-devel] On Fri, 16 Aug 2013, Jun Jun8 Liu wrote: > > Hi all, > > I am doing some research about mds. > > > > there are so many types lock and states .But I don't found some > document to describe. > > > > Is there anybody tell me what is "loner" and "lock_mix" 'loner' tracks when a single client has some exclusive capabilities on the file. For example, when it is the only client with the file open, it can buffer reads and perform setattr operations locally. lock_mix (lock->mix) is a transition state from lock (primary mds copy exclusive lock, sort of) and mix (shared write lock between multiple mds's). The MDS locking is quite complex, but unfortunately there is not much in the way of documentation for the code. :( sage