]> git.ipfire.org Git - thirdparty/linux.git/commit
habanalabs: extend process wait timeout in device fine
authorOded Gabbay <ogabbay@kernel.org>
Thu, 10 Nov 2022 15:24:02 +0000 (17:24 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Wed, 23 Nov 2022 14:13:48 +0000 (16:13 +0200)
commitb585daa89d572210a94c7f11a746bd5489017003
tree5c4bc33c1112ba233b1954680d6a7f3c0f83e179
parentf69c3e460a614cba8939f7c623f7b77f0bcb3584
habanalabs: extend process wait timeout in device fine

Processes that use our device are likely to use at the same time other
devices such as remote storage.

In case our device is removed and a user process is still using the
device, we need to kill the user process. However, if that process
has a thread waiting for i/o to complete on remote storage, for example,
the process won't terminate.

Let's give it enough time to terminate before giving up.

Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Reviewed-by: Tomer Tayar <ttayar@habana.ai>
drivers/misc/habanalabs/common/device.c
drivers/misc/habanalabs/common/habanalabs.h