habanalabs: never copy_from_user inside spinlock
authorOded Gabbay <ogabbay@kernel.org>
Fri, 20 Aug 2021 11:24:48 +0000 (14:24 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Wed, 1 Sep 2021 15:38:24 +0000 (18:38 +0300)
commit698f744aa858e4a5bfcef3f5e0cfc57a15d5b64a
tree1f98cc32121ad9089753cefdc1d9e6ae50ed598a
parent053caa267fd1a46f6cea37bb6ee39b4a8779840f
habanalabs: never copy_from_user inside spinlock

copy_from_user might sleep so we can never call it when we have
a spinlock.

Moreover, it is not necessary in waiting for user interrupt, because
if multiple threads will call this function on the same interrupt,
each one will have it's own fence object inside the driver. The
user address might be the same, but it doesn't really matter to us,
as we only read from it.

Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/command_submission.c