]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
um: chan_user: retry partial writes
authorBenjamin Berg <benjamin.berg@intel.com>
Wed, 18 Oct 2023 12:36:42 +0000 (14:36 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 3 Jul 2024 10:18:02 +0000 (12:18 +0200)
commit4cfb44df8d12a5fc2b801d18dc41b03bf7e6cd7b
treebed231d30bf3ee20d2ef5de473b087ecd649b35f
parentc6c4cbaa01b61eff2232d8cf4d441565535aa53a
um: chan_user: retry partial writes

In the next commit, we are going to set the output FD to be blocking.
Once that is done, the write() may be short if an interrupt happens
while it is writing out data. As such, to properly catch an EINTR error,
we need to retry the write.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Link: https://patch.msgid.link/20231018123643.1255813-3-benjamin@sipsolutions.net
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/um/drivers/chan_user.c