From: xie xingguo Date: Tue, 26 Sep 2017 11:35:10 +0000 (+0800) Subject: os/bluestore/BlueFS: check device id before using hint X-Git-Tag: v13.0.1~766^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=ef0c60fe083c290b947dd71c102d79fd276b74da;p=ceph-ci.git os/bluestore/BlueFS: check device id before using hint As we might be allocating space from different devices (though the chance is rare). Signed-off-by: xie xingguo --- diff --git a/src/os/bluestore/BlueFS.cc b/src/os/bluestore/BlueFS.cc index 0805f843ad3..9159e28812d 100644 --- a/src/os/bluestore/BlueFS.cc +++ b/src/os/bluestore/BlueFS.cc @@ -1828,7 +1828,7 @@ int BlueFS::_allocate(uint8_t id, uint64_t len, } uint64_t hint = 0; - if (!ev->empty()) { + if (!ev->empty() && ev->back().bdev == id) { hint = ev->back().end(); }