um: ubd: Switch to the pthread-based helper
authorTiwei Bie <tiwei.btw@antgroup.com>
Wed, 19 Mar 2025 13:55:21 +0000 (21:55 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 20 Mar 2025 08:26:38 +0000 (09:26 +0100)
commitd7f89a9da4328eee450d2e72631d1ec7e52976f0
tree1740868208e3142829437a72dc91225a29b5b074
parent4f087eafdcef24b7160b097ddb9704084767b77a
um: ubd: Switch to the pthread-based helper

The ubd io thread and UML kernel thread share the same errno, which
can lead to conflicts when both call syscalls concurrently. Switch to
the pthread-based helper to address this issue.

Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com>
Link: https://patch.msgid.link/20250319135523.97050-3-tiwei.btw@antgroup.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/um/drivers/ubd.h
arch/um/drivers/ubd_kern.c
arch/um/drivers/ubd_user.c