]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: remove useless IOContext::num_reading 14956/head
authorSage Weil <sage@redhat.com>
Fri, 5 May 2017 18:39:18 +0000 (14:39 -0400)
committerSage Weil <sage@redhat.com>
Fri, 5 May 2017 18:39:30 +0000 (14:39 -0400)
commite8ab3fdc870b49ff4b590c769660ca3287bb9528
tree637f87ed0070c0ae2bd54612411e371bde832a07
parent1026593173fd783edb92c2e17fa8ceebd049cca4
os/bluestore: remove useless IOContext::num_reading

If we are a syncrhonous read, we don't need this: we don't aio_wait for
sync reads.  If we are an aio_read, we are in the aio_running count anyway,
and there is also no purpose for this counter.

I'm a bit unsure about the NVME use of this counter; I switched it to use
num_running (pretty sure we aren't mixing reads and writes on a single
IOContext) *but* it might make more sense to switch to a private counter.

Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BlockDevice.cc
src/os/bluestore/BlockDevice.h
src/os/bluestore/KernelDevice.cc
src/os/bluestore/NVMEDevice.cc