numam-spdk/lib
Jim Harris f3cedcc7fe bdev: set iovs on correct bdev_io in spdk_bdev_io_put_buf
spdk_bdev_io_put_buf() is responsible for reclaiming
bdev-allocated buffers from a bdev_io.  If there are
bdev_ios waiting for one of these buffers, it calls
spdk_bdev_io_set_buf() on the next bdev_io in the queue.
This will set the iov_base and iov_len on the bdev_io
to point to the bdev-allocated buffer.

But spdk_bdev_io_put_buf() was calling spdk_bdev_io_set_buf()
on the just completed bdev_io, not the next bdev_io in the
queue.  So fix that.

Fixes: 844aedf8 ("bdev: Simplify get/set/put buf functions")
Reported-by: Alan Tu
Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: Ibbcad6e35a3db6991bd7deb3516229572f021638
Reviewed-on: https://review.gerrithub.io/424881
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
2018-09-10 21:16:10 +00:00
..
bdev bdev: set iovs on correct bdev_io in spdk_bdev_io_put_buf 2018-09-10 21:16:10 +00:00
blob blobstore: recalculate total clusters after reading super block 2018-07-27 16:23:50 +00:00
blobfs blobfs: add the check for cache_buffer 2018-07-26 23:56:36 +00:00
conf conf: don't strdup name if section already exist 2018-05-17 17:13:19 +00:00
copy copy/ioat: Add scan_ioat_copy_engine RPC 2018-06-14 03:54:42 +00:00
env_dpdk dpdk/pci: support DPDK 18.08 write combined PCI resources 2018-08-21 14:31:09 +00:00
event nvmf_tgt: delete connections accepted during shutdown 2018-07-31 16:14:29 +00:00
ioat ioat: fix typo on IOAT_DEFAULT_ORDER comment 2018-07-05 16:24:56 +00:00
iscsi iscsi/rpc: fix several bugs of set_iscsi_options 2018-07-25 19:22:08 +00:00
json json: Add spdk_json_decode_uint16 2018-06-05 21:30:02 +00:00
jsonrpc jsonrpc: fix closed connection hadling 2018-06-08 18:11:18 +00:00
log log: add backtrace option 2018-07-25 15:48:25 +00:00
lvol lvol: remove destruct_req from lvol store 2018-07-26 21:55:36 +00:00
nbd thread: Replace #include of io_channel.h with thread.h 2018-06-12 15:24:07 +00:00
net net: split sock abstraction into lib/sock 2018-06-22 17:09:57 +00:00
nvme nvme: add quirk for Intel SSDs without vendor-specific log pages 2018-09-05 20:45:06 +00:00
nvmf nvmf: Simplify spdk_nvmf_qpair_disconnect 2018-08-01 17:13:48 +00:00
rocksdb blobfs: change the return type of spdk_file_truncate 2018-07-26 01:42:17 +00:00
rpc rpc: Add option to get_rpc_methods RPC to output only currently usable RPCs 2018-05-04 17:45:48 +00:00
scsi iscsi: Support hot removal of LUN based on LUN open/close 2018-07-17 17:43:28 +00:00
sock net: split sock abstraction into lib/sock 2018-06-22 17:09:57 +00:00
thread util: Remove usage of abort from library code 2018-07-17 17:40:11 +00:00
trace app,lib: fix checking mmap return value 2018-03-30 16:18:34 -04:00
ut_mock test/mock: add pthread_self 2017-09-19 17:15:15 -04:00
util Clean up some incorrect Copyright statements 2018-07-30 16:29:38 +00:00
vhost vhost: clear desc, avail and used addresses on setting new mem table 2018-07-26 05:29:28 +00:00
virtio virtio: clarify feature negotiation failure 2018-08-01 19:16:54 +00:00
Makefile test: remove spdk_cunit library 2018-07-06 18:35:03 +00:00