commit | 698f744aa858e4a5bfcef3f5e0cfc57a15d5b64a | [log] [tgz] |
---|---|---|
author | Oded Gabbay <ogabbay@kernel.org> | Fri Aug 20 14:24:48 2021 +0300 |
committer | Oded Gabbay <ogabbay@kernel.org> | Wed Sep 01 18:38:24 2021 +0300 |
tree | 1f98cc32121ad9089753cefdc1d9e6ae50ed598a | |
parent | 053caa267fd1a46f6cea37bb6ee39b4a8779840f [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>