From: xie xingguo Date: Wed, 3 Feb 2016 07:17:53 +0000 (+0800) Subject: bluestore/NVMEDevice: fix compiling error X-Git-Tag: v10.1.0~417^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=06f383733f8b39e5d8528df370de4c9ef1110f7c;p=ceph.git bluestore/NVMEDevice: fix compiling error Signed-off-by: xie xingguo --- diff --git a/src/os/bluestore/NVMEDevice.cc b/src/os/bluestore/NVMEDevice.cc index 9d0eb63a6038..a1b2c68146ff 100644 --- a/src/os/bluestore/NVMEDevice.cc +++ b/src/os/bluestore/NVMEDevice.cc @@ -511,7 +511,7 @@ void io_complete(void *t, const struct nvme_completion *completion) Task *task = static_cast(t); IOContext *ctx = task->ctx; SharedDriverData *driver = task->device->get_driver(); - driver->inflight_ops.dec(); + int left = driver->inflight_ops.dec(); utime_t lat = ceph_clock_now(g_ceph_context); lat -= task->start; if (task->command == IOCommand::WRITE_COMMAND) {