From 3ab97aff0e2db6bce2c85a68ed06cd67e2ac602d Mon Sep 17 00:00:00 2001 From: sage Date: Wed, 21 Dec 2005 04:34:05 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@540 29311d96-e01e-0410-9327-a35deaab8ce9 --- ceph/ebofs/Ebofs.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ceph/ebofs/Ebofs.cc b/ceph/ebofs/Ebofs.cc index b803554754d1d..9f4ab19a1813b 100644 --- a/ceph/ebofs/Ebofs.cc +++ b/ceph/ebofs/Ebofs.cc @@ -1538,9 +1538,11 @@ int Ebofs::write(object_t oid, assert(len > 0); // too much unflushed dirty data? (if so, block!) - while (_write_will_block()) { + if (_write_will_block()) { dout(10) << "write blocking on write" << endl; - bc.waitfor_stat(); // waits on ebofs_lock + while (_write_will_block()) + bc.waitfor_stat(); // waits on ebofs_lock + dout(7) << "write unblocked " << hex << oid << dec << " len " << len << " off " << off << endl; } // out of space? -- 2.39.5