summaryrefslogtreecommitdiffstats
path: root/Documentation/admin-guide/pm
diff options
context:
space:
mode:
authorWaiman Long <longman@redhat.com>2021-03-16 11:31:16 -0400
committerIngo Molnar <mingo@kernel.org>2021-03-17 09:56:44 +0100
commit5de2055d31ea88fd9ae9709ac95c372a505a60fa (patch)
tree627aa968324f0a86a045733abb7721a4f9aca914 /Documentation/admin-guide/pm
parent1df27313f50a57497c1faeb6a6ae4ca939c85a7d (diff)
downloadlinux-5de2055d31ea88fd9ae9709ac95c372a505a60fa.tar.bz2
locking/ww_mutex: Simplify use_ww_ctx & ww_ctx handling
The use_ww_ctx flag is passed to mutex_optimistic_spin(), but the function doesn't use it. The frequent use of the (use_ww_ctx && ww_ctx) combination is repetitive. In fact, ww_ctx should not be used at all if !use_ww_ctx. Simplify ww_mutex code by dropping use_ww_ctx from mutex_optimistic_spin() an clear ww_ctx if !use_ww_ctx. In this way, we can replace (use_ww_ctx && ww_ctx) by just (ww_ctx). Signed-off-by: Waiman Long <longman@redhat.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Acked-by: Davidlohr Bueso <dbueso@suse.de> Link: https://lore.kernel.org/r/20210316153119.13802-2-longman@redhat.com
Diffstat (limited to 'Documentation/admin-guide/pm')
0 files changed, 0 insertions, 0 deletions