numam-spdk/lib/thread
Weiguo Li 8be59045ea thread: fix double unlock in spdk_io_device_register
Since there is a pthread_mutex_unlock() in normal condition, another
pthread_mutex_unlock() in the "tmp != NULL" branch should be removed,
otherwise will cause a double unlock.

Fixes issue #2378.

Signed-off-by: Weiguo Li <liwg06@foxmail.com>
Change-Id: I6c80a9527dd60e0b7c1d3c54b6da371b31118f02
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11642
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2022-02-17 17:10:31 +00:00
..
Makefile so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
spdk_thread.map thread: add spdk_poller_get_id 2021-11-16 09:06:10 +00:00
thread_internal.h thread: speed up io_channel lookup by using rbtree 2021-07-16 07:11:53 +00:00
thread.c thread: fix double unlock in spdk_io_device_register 2022-02-17 17:10:31 +00:00