commit | d5546d78ad409b90dbcb62100458875e8eaf6a0d | [log] [tgz] |
---|---|---|
author | Oded Gabbay <ogabbay@kernel.org> | Thu Jul 01 11:42:53 2021 +0300 |
committer | Oded Gabbay <ogabbay@kernel.org> | Sun Aug 29 09:47:45 2021 +0300 |
tree | 34f8be9f197808e6a5aac30f5737fd05acaa5ea2 | |
parent | 82629c71c26c1a67a26b0b25971da97003c3b287 [diff] |
habanalabs: re-init completion object upon retry In case user interrupt arrived but the completion value is less than the target value, we want to retry the wait. However, before the retry we must reinitialize the completion object, under spin-lock, so the wait function won't exit immediately because the completion object is already completed (from the previous interrupt). Signed-off-by: Oded Gabbay <ogabbay@kernel.org>