]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore/spdk: Fix the overflow error of parsing spdk coremask 32440/head
authorChunsong Feng <fengchunsong@huawei.com>
Thu, 19 Dec 2019 09:32:09 +0000 (17:32 +0800)
committerluo rixin <luorixin@huawei.com>
Mon, 9 Mar 2020 01:43:41 +0000 (09:43 +0800)
commitd79efbabb83acf742ff565a487797eca8f5fe8ed
treeca6cf21cd13440ad8e25d67f0124ea0d7fab5714
parent45907ee258d2db5773d0001c25a901d9f520d6cc
os/bluestore/spdk: Fix the overflow error of parsing spdk coremask

coremask supports up to 256 bits in DPDK19.05, but the use of stoll in
NVMEManager::try_get limits the maximum use to 64 bits. Parse coremask by
hex character from low to high.

Fixes: https://tracker.ceph.com/issues/43044
Signed-off-by: Hu Ye <yehu5@huawei.com>
Signed-off-by: Chunsong Feng <fengchunsong@huawei.com>
Signed-off-by: luo rixin <luorixin@huawei.com>
src/os/bluestore/NVMEDevice.cc