I would prefer to extract out the pending bit handling code out into aYou mean have the arch provide a queued_spin_lock_slowpath_pending
separate helper function which can be overridden by the arch code
instead of breaking the slowpath into 2 pieces.
function that the slow path calls?
I would actually prefer the pending handling can be made inline in
the queued_spin_lock function, especially with out-of-line locks it
makes sense to put it there.
We could ifdef out queued_spin_lock_slowpath_queue if it's not used,
then __queued_spin_lock_slowpath_queue would be inlined into the
caller so there would be no split?