]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
bluestore, NVMeDevice: use task' own lock for (random) read 14094/head
authorZiye Yang <ziye.yang@intel.com>
Wed, 22 Mar 2017 03:41:00 +0000 (11:41 +0800)
committeroptimistyzy <optimistyzy@gmail.com>
Thu, 23 Mar 2017 02:31:23 +0000 (10:31 +0800)
commite359189d7289c37f12757b6c70e4329275f40263
tree94ad558263f98b1124a7a7782f65e72ffdfcd816
parent950abe1b405d6c61749298a920872e441b3dabc2
bluestore, NVMeDevice: use task' own lock for (random) read

The reason is that ioc may be reaped in _aio_thread function
with  the following statements:
for (auto &&it : registered_devices)
          it->reap_ioc();

So if we still use ioc's lock for (random) read, it will cause
core dump.

Signed-off-by: optimistyzy <optimistyzy@gmail.com>
src/os/bluestore/NVMEDevice.cc