]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: better handling for duplicate flatten requests
authorJason Dillaman <dillaman@redhat.com>
Tue, 21 Apr 2015 16:59:33 +0000 (12:59 -0400)
committerJason Dillaman <dillaman@redhat.com>
Wed, 6 May 2015 15:51:37 +0000 (11:51 -0400)
commitd21c0c00d2bed282677d2063a3fb6f5346641286
treee8376e0ef468d072852b8f32af92de7fb67463c5
parentec0bd1dea526e04333d8059421666dcd2a59044e
librbd: better handling for duplicate flatten requests

A proxied flatten request could be replayed, resulting in a
-EINVAL error code being generated on the second attempt. Filter
out that error if it is known the parent did exist before the
op started.

Fixes: #11370
Backport: hammer
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit ef7e210c3f747bc4c3c8768c7b6407cc91c5c319)
src/librbd/internal.cc