]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: potential assertion failure during cache read 6344/head
authorJason Dillaman <dillaman@redhat.com>
Wed, 21 Oct 2015 17:12:48 +0000 (13:12 -0400)
committerJason Dillaman <dillaman@redhat.com>
Thu, 22 Oct 2015 17:36:46 +0000 (13:36 -0400)
commit58414c565fb299faf987c05b30758c159ac7bb17
treed5710f211dd14e5c9018f2cf20f05e5e05409964
parent011e9e5c64224a68d8a470ed9e2929f681d727bb
librbd: potential assertion failure during cache read

It's possible for a cache read from a clone to trigger a writeback if a
previous read op determined the object doesn't exist in the clone,
followed by a cached write to the non-existent clone object, followed
by another read request to the same object.  This causes the cache to
flush the pending writeback ops while not holding the owner lock.

Fixes: #13559
Backport: hammer
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/LibrbdWriteback.cc
src/librbd/internal.cc