numam-spdk/lib
Ziye Yang 644678258f blobfs: move the location of next buffer check.
This patch address the issue:
https://github.com/spdk/spdk/issues/151.

For cache_append_no_cache in cache_ut testcase,
there is resource contention for buffer among two
threads in the following two functions.
Thread 0: cache_free_buffers
Thread1: __file_flush_done

When the thread1 execuctes __file_flush_done,
it calls the call back: __sem_post defined in
following statement in spdk_file_sync

_file_sync(file, channel, __sem_post, &channel->sem);

Thus Thread 0 will execute next function
cache_buffers, and it frees the buffer.

Then Thread 1 continues executing the remaining statements
in __file_flush_done with the assert function, and touches
the space already freed.

So it will be safe to move ahead the next buffer check.

Change-Id: Ic007b3481f4e3a17d47eeca5c9c802001949a5ab
Signed-off-by: Ziye Yang <ziye.yang@intel.com>
2017-05-16 10:51:26 +08:00
..
bdev bdev: add a null bdev module 2017-05-15 14:00:37 -07:00
blob bdev: add getters for block size and block count 2017-05-12 10:34:58 -07:00
blobfs blobfs: move the location of next buffer check. 2017-05-16 10:51:26 +08:00
conf log: Use SPDK_ERRLOG in lieu of fprintf(stderr 2017-05-09 11:28:28 -07:00
copy copy: Replace rte_memcpy with regular memcpy 2017-05-09 13:11:39 -07:00
cunit include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
env_dpdk env/dpdk: use the new *rte_pci* API for DPDK 17.05 2017-05-12 07:53:42 -07:00
event env: Add wrappers for a lockless ring 2017-05-09 14:02:15 -07:00
ioat include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
iscsi scsi: remove spdk_scsi_task::owner_task_ctr 2017-05-15 10:12:42 -07:00
json include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
jsonrpc include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
log log: Use SPDK_ERRLOG in lieu of fprintf(stderr 2017-05-09 11:28:28 -07:00
net build: Automatically detect use of POSIX includes 2017-05-08 13:20:37 -07:00
nvme nvme: add timeout value to multi-process driver init 2017-05-12 07:53:48 -07:00
nvmf nvmf: call function spdk_nvmf_valid_nqn to check the host_nqn. 2017-05-16 03:19:54 +08:00
rpc include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
scsi scsi_bdev: simplify scsi_readwrite helper function 2017-05-15 13:35:18 -07:00
trace include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
util include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
vhost scsi: remove spdk_scsi_task::owner_task_ctr 2017-05-15 10:12:42 -07:00
Makefile blobfs: Add a lightweight filesystem built on the blobstore 2017-03-24 14:15:45 -07:00