Spdk/test/unit/lib
lorneli 02be32d482 bdev: optimize coversion of bytes to blocks
Since division is more expensive than right shift operator, in
function spdk_bdev_bytes_to_blocks, use right shift instead of
division if the blocklen of bdev is a power of two.

Change-Id: Ib3dbc792e86582bba30b3dc028efbd12c69075ba
Signed-off-by: lorneli <lorneli@163.com>
Reviewed-on: https://review.gerrithub.io/438318
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2019-01-02 08:31:59 +00:00
..
bdev bdev: optimize coversion of bytes to blocks 2019-01-02 08:31:59 +00:00
blob test: Use ut_multithread framework in blob unit test 2018-12-31 06:17:02 +00:00
blobfs test: Use ut_multithread framework in blobfs async test 2018-12-20 15:49:39 +00:00
event build: remove duplicate spdk.app.mk includes 2018-12-11 18:07:53 +00:00
ioat pci: remove ioat-specific attach functions 2018-12-07 17:24:19 +00:00
iscsi build: remove duplicate spdk.app.mk includes 2018-12-11 18:07:53 +00:00
json json: add utilities function enabling itaration over JSON object 2018-10-18 16:07:37 +00:00
jsonrpc jsonrpc: call spdk_jsonrpc_free_request only from server thread 2018-08-13 20:01:07 +00:00
log build: remove duplicate spdk.app.mk includes 2018-12-11 18:07:53 +00:00
lvol test: Use ut_multithread framework in lvol unit test 2018-12-20 15:49:39 +00:00
nvme test/nvme: replace PAGE_SIZE with OCSSD_SECTOR_SIZE 2018-12-13 05:00:54 +00:00
nvmf nvmf: add the transport shared buffer num configuration option. 2018-12-20 19:55:57 +00:00
reduce reduce: calculate vol size from backing dev size 2018-12-13 14:55:39 +00:00
scsi thread: Rename spdk_thread_msg to spdk_msg_fn 2018-12-18 23:31:08 +00:00
sock build: remove duplicate spdk.app.mk includes 2018-12-11 18:07:53 +00:00
thread thread: Use TLS to accelerate thread look up 2018-12-14 18:54:03 +00:00
util util/crc16: Add spdk_crc16_t10dif_copy to use in read strip and write insert 2018-12-20 17:52:29 +00:00
vhost vhost: move vid to session struct 2018-12-23 00:42:54 +00:00
json_mock.c subsystem: add per module configuration dump 2018-03-23 02:47:40 -04:00
Makefile reduce: add configure option 2018-11-08 00:01:47 +00:00