Skip to content

Commit

Permalink
os/bluestore: print error log if get_return_value return error
Browse files Browse the repository at this point in the history
Signed-off-by: mychoxin <mychoxin@gmail.com>
  • Loading branch information
mychoxin committed Aug 29, 2017
1 parent ef0502a commit 31cc06c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/os/bluestore/KernelDevice.cc
Expand Up @@ -362,11 +362,17 @@ void KernelDevice::_aio_thread()
io_since_flush.store(true);

int r = aio[i]->get_return_value();
if (r < 0) {
derr << __func__ << " finished aio " << aio[i] << " r " << r
<< " ioc " << ioc
<< " with " << (ioc->num_running.load() - 1)
<< " aios left" << dendl;
assert(r >= 0);
}
dout(10) << __func__ << " finished aio " << aio[i] << " r " << r
<< " ioc " << ioc
<< " with " << (ioc->num_running.load() - 1)
<< " aios left" << dendl;
assert(r >= 0);

// NOTE: once num_running and we either call the callback or
// call aio_wake we cannot touch ioc or aio[] as the caller
Expand Down

0 comments on commit 31cc06c

Please sign in to comment.