On 12/06/2019 22.33, Yan, Zheng wrote: > I have tracked down the bug. thank you for reporting this. 'echo 2 > > /proc/sys/vm/drop_cache' should fix the hang. If you can compile ceph > from source, please try following patch. > > diff --git a/src/mds/Locker.cc b/src/mds/Locker.cc > index ecd06294fa..94b947975a 100644 > --- a/src/mds/Locker.cc > +++ b/src/mds/Locker.cc > @@ -2956,7 +2956,8 @@ void Locker::handle_client_caps(MClientCaps *m) > > // client flushes and releases caps at the same time. make sure > MDCache::cow_inode() > // properly setup CInode::client_need_snapflush > - if ((m->get_dirty() & ~cap->issued()) && !need_snapflush) > + if (!need_snapflush && (m->get_dirty() & ~cap->issued()) && > + (m->flags & MClientCaps::FLAG_PENDING_CAPSNAP)) > cap->mark_needsnapflush(); > } > > > That was quick, thanks! I can build from source but I won't have time to do so and test it until next week, if that's okay. -- Hector Martin (hector@xxxxxxxxxxxxxx) Public Key: https://mrcn.st/pub _______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com