diff options
author | Oded Gabbay <ogabbay@kernel.org> | 2022-07-07 11:39:19 +0300 |
---|---|---|
committer | Oded Gabbay <ogabbay@kernel.org> | 2022-07-12 09:09:31 +0300 |
commit | bd4a338886a8cc5809f45d569df395acb846ce8e (patch) | |
tree | 0b11e7b35f5536011d64d78b8c13602f200f6e7c /mm | |
parent | 08f0aa9548fd624f7ad5ae1135423706b5e9fa6a (diff) |
habanalabs: fix update of is_in_soft_reset
reset_info.is_in_soft_reset should be updated both before in_reset
and inside the spin lock of the reset info structure.
The reasons are:
- When we are inside soft reset, it implies we are in reset. Therefore,
if someone checks if we are in soft reset, he can deduce we are
in reset, while the opposite is not correct and might be misleading.
- Both these flags are changed together so they must be changed
inside the reset info spinlock.
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions