]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: skip cache initialization if data IoCtx is invalid 37286/head
authorJason Dillaman <dillaman@redhat.com>
Mon, 21 Sep 2020 18:05:17 +0000 (14:05 -0400)
committerJason Dillaman <dillaman@redhat.com>
Thu, 24 Sep 2020 13:13:49 +0000 (09:13 -0400)
commitad1016b014d4c33dee3be66376bf9f3394160501
treed56c4058017179befc3e9becf7b6be75dd087454
parent94d43165ed7319d163640f38d154f8f80408eb14
librbd: skip cache initialization if data IoCtx is invalid

This resolves the potential for an assertion failure in the cache
constructors that occurs when the data IoCtx is not valid. Errors
are deferred until actual IOs are issued against the invalid data
pool.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/image/OpenRequest.cc
src/librbd/plugin/ParentCache.cc