Skip to content

Commit

Permalink
Merge pull request ceph#29858 from dillaman/wip-41409
Browse files Browse the repository at this point in the history
test/librbd: set nbd timeout due to newer kernels defaulting it on

Reviewed-by: Mike Christie <[email protected]>
Reviewed-by: Mykola Golub <[email protected]>
  • Loading branch information
trociny authored Aug 28, 2019
2 parents e81ef76 + 1c40cfc commit a7d8813
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/test/librbd/fsx.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1230,6 +1230,7 @@ nbd_open(const char *name, struct rbd_ctx *ctx)
SubProcess process("rbd-nbd", SubProcess::KEEP, SubProcess::PIPE,
SubProcess::KEEP);
process.add_cmd_arg("map");
process.add_cmd_arg("--timeout=600");
std::string img;
img.append(pool);
img.append("/");
Expand Down
2 changes: 1 addition & 1 deletion src/tools/rbd_nbd/rbd-nbd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ class NBDServer
{
ceph_assert(!reader_thread.is_started());
std::unique_lock l{lock};
cond.wait(l, [this] { return io_finished.empty(); });
cond.wait(l, [this] { return io_pending.empty(); });

while(!io_finished.empty()) {
std::unique_ptr<IOContext> free_ctx(io_finished.front());
Expand Down

0 comments on commit a7d8813

Please sign in to comment.