Commit Graph

48305 Commits

Author SHA1 Message Date
Haomai Wang
5497e2fa4e BlueStore: allow nvme driver read from path
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:01:27 +08:00
Haomai Wang
619c08c100 NVMEDevice: no need to detach nvme device
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:01:27 +08:00
Haomai Wang
79f9d1e129 NVMEDevice: add polling time perf counter
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:01:27 +08:00
Haomai Wang
584f8f98a9 NVMEDevice: add flush perf counter calculate
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:01:27 +08:00
Haomai Wang
bb5d9095c1 RocksDB: add block cache size option to RocksDB
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:01:27 +08:00
Haomai Wang
6b637df73f NVMEDevice: let perf counter do early
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:47 +08:00
Haomai Wang
91bf3bb39f NVMEDevice: make flush wait for all write completed
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:47 +08:00
Haomai Wang
b561d448ac NVMEDevice: delay nvme aio thread start in case of logger is null
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:47 +08:00
Haomai Wang
47335108e1 NVMEDevice: let aio_write submit request FIFO
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:46 +08:00
Haomai Wang
23fd140d6a NVMEDevice: impl read_buffered method
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:46 +08:00
Haomai Wang
83c8261e23 NVMEDevice: adjust indent
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:46 +08:00
Haomai Wang
30342ab67e BlockDevice: Move KernelDevice reap ioc to BlockDevice
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:46 +08:00
Haomai Wang
b365d2c668 NVMEDevice: add log message to reminder potential failed reason
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:46 +08:00
Haomai Wang
705fd5b78f NVMEDevice: use stringify instead of std::to_string
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:46 +08:00
Haomai Wang
cbe42e1658 NVMEDevice: disable flush command now
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:46 +08:00
Haomai Wang
8e258ffb60 NVMEDevice: add perf counter
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:46 +08:00
Haomai Wang
263353bda5 NVMEDevice: adjust request/task memory pool size
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:45 +08:00
Haomai Wang
997716c62d NVMEDevice: don't try to acquire lock always
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:45 +08:00
Haomai Wang
19a3c7eb56 NVMEDevice: make aio thread pause when idle
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:45 +08:00
Haomai Wang
8740256163 NVMEDevice: add retry support
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:45 +08:00
Haomai Wang
3776af0ce2 NVMEDevice: add flush support
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:45 +08:00
Haomai Wang
8a59bd878e NVMEDevice: fix multi ops in one IOContext bug
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:45 +08:00
Haomai Wang
6081a58f3d NVMEDevice: Fix typo
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:45 +08:00
Haomai Wang
3bdd068a3c KernelDevice: Remove redundancy lines
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:45 +08:00
Haomai Wang
69e5a6d1d6 NVMEDevice: make controller global shared
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:45 +08:00
Haomai Wang
39c131816b NVMEDevice: reorder signal in case of signaled thread modify IOContext
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:44 +08:00
Haomai Wang
53c8b7751d BlueFS: Use num_pending instead of pending_aios
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:44 +08:00
Haomai Wang
ac654f09e0 BlockDevice: initialize backend_priv
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:44 +08:00
Haomai Wang
a5748cb2da NVMEDevice: make read/write all async
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:44 +08:00
Haomai Wang
4689bd2772 NVMEDevice: Fix static method
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:44 +08:00
Haomai Wang
2ad7c18222 NVMEDevice: SPDK only permit submit/poll within one thread
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:44 +08:00
Haomai Wang
4e85f5ec9b NVMEDevice: fix unknown serial number problem
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:44 +08:00
Haomai Wang
0525aae5f9 NVMEDevice: wrap C header file
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:44 +08:00
Haomai Wang
5aa1c86f96 Makefile: let spdk/dpdk libraries linked in upper layer
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:43 +08:00
Haomai Wang
f911e2bf94 NVMEDevice: add spdk/pci.h
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:43 +08:00
Haomai Wang
bb1adcf406 NVMEDevice: nvme.h use _Static_assert which from c11
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:43 +08:00
Haomai Wang
b899452526 NVMEDevice: let IOContext can use NVMEDevice pointer
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:43 +08:00
Haomai Wang
abb19d6833 NVMEDevice: remove unused variables
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:43 +08:00
Haomai Wang
ba5973f7ff configure.ac: fix spdk external header location
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:43 +08:00
Haomai Wang
fbdcb12cc9 BlueFS: fix comparison warning
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:43 +08:00
Haomai Wang
153660c820 BlockDevice: Add override to explicit
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:43 +08:00
Haomai Wang
e64d16d54e BlockDevice: Fix compile error
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:42 +08:00
Haomai Wang
3a604066e4 NVMEDevice: fix compile error
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:42 +08:00
Haomai Wang
415111ff9e NVMEDevice: use device name instead of path
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:42 +08:00
Haomai Wang
ee4951d05c makefile: add SPDK detect and NVMEDevice to Makefile
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:42 +08:00
Haomai Wang
b771c02dc0 BlueStore: Add BlockDevice ability to create different backend
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:11 +08:00
Haomai Wang
1d9448eeae BlueStore: abostract BlockDevice based KernelDevice and NVMEDevice
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:11 +08:00
Haomai Wang
35576154ae bluestore: rename BlockDevice to KernelDevice matching NVMEDevice
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:11 +08:00
Haomai Wang
e76f716ac2 bluestore: add NVMEDevice backend
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-01 22:00:11 +08:00
Sage Weil
64fbda8371 Merge pull request #7266 from sahithi-rv/master
common/str_map: cleanup: replaced get_str_map() function overloading by using default parameters for delimiters

Reviewed-by: Sage Weil <sage@redhat.com>
2016-01-31 10:03:14 -05:00