From: Haomai Wang Date: Wed, 6 Jan 2016 04:06:46 +0000 (+0800) Subject: KernelDevice: Remove redundancy lines X-Git-Tag: v10.0.4~81^2~29 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3bdd068a3c755fd33a4e4a8b49473a8879800f7f;p=ceph.git KernelDevice: Remove redundancy lines Signed-off-by: Haomai Wang --- diff --git a/src/os/bluestore/KernelDevice.cc b/src/os/bluestore/KernelDevice.cc index 34795a985572..03c509039cba 100644 --- a/src/os/bluestore/KernelDevice.cc +++ b/src/os/bluestore/KernelDevice.cc @@ -28,26 +28,6 @@ #define dout_subsys ceph_subsys_bdev #undef dout_prefix -#define dout_prefix *_dout << "bdev " - - -void IOContext::aio_wait() -{ - Mutex::Locker l(lock); - // see _aio_thread for waker logic - num_waiting.inc(); - while (num_running.read() > 0 || num_reading.read() > 0) { - dout(10) << __func__ << " " << this - << " waiting for " << num_running.read() << " aios and/or " - << num_reading.read() << " readers to complete" << dendl; - cond.Wait(lock); - } - num_waiting.dec(); - dout(20) << __func__ << " " << this << " done" << dendl; -} - -// ---------------- -#undef dout_prefix #define dout_prefix *_dout << "bdev(" << path << ") " KernelDevice::KernelDevice(aio_callback_t cb, void *cbpriv)