]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
spdk: fix ceph-osd crash when activate SPDK 22684/head
authortone-zhang <tone.zhang@arm.com>
Fri, 1 Jun 2018 04:41:33 +0000 (04:41 +0000)
committerPrashant D <pdhange@redhat.com>
Mon, 25 Jun 2018 01:14:07 +0000 (21:14 -0400)
commit421cc64e17a64c2ebcbba6243ab46e5cd1fcb654
treeff4eae11839a674bd4c8f5deb6652f2eb64ab706
parent7cda9121a9348ea7a37c78ca14b3c5bdfdaca041
spdk: fix ceph-osd crash when activate SPDK

When activate SPDK in Ceph, observe a Ceph crash.

It happened in the case 1) there is a pending IOContext in
NVMEDevice and 2) the lower block device has been recreated and
queue_t then points to an NVMEDevice that no longer exists.

This patch addresses the problem by deleting and zeroing queue_t
when NVMEDevice is closed.

Fixes: http://tracker.ceph.com/issues/24371
Signed-off-by: tone-zhang <tone.zhang@arm.com>
(cherry picked from commit e1bd985b341553876888339620b7b9e76f078e7a)
src/os/bluestore/NVMEDevice.cc