forked from openzfs/zfs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Linux SPL: Remove nested spinlock API usage
Coverity now complains about double unlocking since it added a builtin for spin_unlock_irqrestore(), but not spin_lock_irqsave_nested(). The code uses it to avoid a lockdep warning warning about recursive locking in: taskq_dispatch -> taskq_thread_spawn -> taskq_dispatch As a cleaner alternative, we introduce taskq_dispatch_impl() that avoids locking and have taskq_thread_spawn() call that. This avoids recursive locking. Signed-off-by: Richard Yao <[email protected]>
- Loading branch information
Showing
3 changed files
with
44 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters