summaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorOded Gabbay <ogabbay@kernel.org>2021-08-20 14:24:48 +0300
committerOded Gabbay <ogabbay@kernel.org>2021-09-01 18:38:24 +0300
commit698f744aa858e4a5bfcef3f5e0cfc57a15d5b64a (patch)
tree1f98cc32121ad9089753cefdc1d9e6ae50ed598a /lib/mpi/mpi-sub-ui.c
parent053caa267fd1a46f6cea37bb6ee39b4a8779840f (diff)
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>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions