]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/osd_internal_types: wake snaptrimmer on put_read lock, too 16015/head
authorSage Weil <sage@redhat.com>
Thu, 2 Mar 2017 21:03:57 +0000 (15:03 -0600)
committerAlexey Sheplyakov <asheplyakov@mirantis.com>
Thu, 29 Jun 2017 12:36:37 +0000 (16:36 +0400)
commit7bf8b854ab573016bba10fe2904b4d4f4e9b1ee1
tree38efe4e8a6f28ed15895875c28f1dcbe0d459028
parent84bd162978e48eead40335bcbd92e4ab18e9c590
osd/osd_internal_types: wake snaptrimmer on put_read lock, too

The snaptrimmer can block taking a write lock, which might happen due to
a conficting EC read.  When the EC read completes, we need to wake up the
snaptrimmer.

Fixes: http://tracker.ceph.com/issues/19131
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 993179870ef7eece47cb9ccfb7275c29bf8536eb)

Conflicts:
src/osd/osd_internal_types.h: ObjectContext::put_lock_type() is
  defined in src/osd/osd_types.h in Jewel, patch that file
src/osd/osd_types.h