mirror of
https://github.com/ceph/ceph
synced 2025-01-10 21:20:46 +00:00
Merge pull request #29858 from dillaman/wip-41409
test/librbd: set nbd timeout due to newer kernels defaulting it on Reviewed-by: Mike Christie <mchristi@redhat.com> Reviewed-by: Mykola Golub <mgolub@suse.com>
This commit is contained in:
commit
a7d88133d5
@ -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("/");
|
||||
|
@ -227,7 +227,7 @@ private:
|
||||
{
|
||||
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());
|
||||
|
Loading…
Reference in New Issue
Block a user