]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
Bluestore,NVMEDEVICE: fix the I/O logic for READ
authorZiye Yang <ziye.yang@intel.com>
Wed, 15 Mar 2017 06:32:53 +0000 (14:32 +0800)
committerZiye Yang <ziye.yang@intel.com>
Mon, 20 Mar 2017 09:46:52 +0000 (17:46 +0800)
commitf2a1e34f880efe7955b9df751b745aac8d70540c
tree72b4ebe112404941583358e9addb53ad02284e5c
parent2beb4ee2dd5ad8f55bab782b1057eb22e3a66803
Bluestore,NVMEDEVICE: fix the I/O logic for READ

Aio_submit will submit both aio_read/write, and also there
are synchronized read and random read, so we need to
handle the read I/O completion in a correct way.

Since random read has its own ioc, so the
num_reading for ioc will be at most 1, which will be easy
to handle in io_complete. And we need only to differentiate
whethere it is an aio_read.

Also fix the exception logic in command send, make the style
consistent.

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