]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
spdk: fix ceph-osd crash when activate SPDK 22356/head
authortone-zhang <tone.zhang@arm.com>
Fri, 1 Jun 2018 04:41:33 +0000 (04:41 +0000)
committertone-zhang <tone.zhang@arm.com>
Sat, 2 Jun 2018 10:21:32 +0000 (10:21 +0000)
commite1bd985b341553876888339620b7b9e76f078e7a
tree7aa985bf8b74d9e1c63dacc1e7d0c0e6e55a29e4
parenteb8c5e552e63a0ad0904cb3ae1bd66dc3c55edae
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>
src/os/bluestore/NVMEDevice.cc