diff options
author | David Laight <David.Laight@ACULAB.COM> | 2023-12-29 23:56:03 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2023-12-30 21:25:51 +0300 |
commit | 563adbfc351b2af9f1406b809ba60b9f1673a882 (patch) | |
tree | 87fd8337c16d52d018244383e8b679864e443744 /include/scsi/libfcoe.h | |
parent | 7c223098212957a1ecd8768e8e747ae2cf88e880 (diff) | |
download | linux-563adbfc351b2af9f1406b809ba60b9f1673a882.tar.xz |
locking/osq_lock: Clarify osq_wait_next() calling convention
osq_wait_next() is passed 'prev' from osq_lock() and NULL from
osq_unlock() but only needs the 'cpu' value to write to lock->tail.
Just pass prev->cpu or OSQ_UNLOCKED_VAL instead.
Should have no effect on the generated code since gcc manages to assume
that 'prev != NULL' due to an earlier dereference.
Signed-off-by: David Laight <david.laight@aculab.com>
[ Changed 'old' to 'old_cpu' by request from Waiman Long - Linus ]
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/scsi/libfcoe.h')
0 files changed, 0 insertions, 0 deletions