[roll] Roll fuchsia [kernel][scheduler] Move RescheduleMask self-IPI into PreemptLocked

This change fixes a bug where calling Preempt while holding a spinlock
would fail the no-spinlocks-held assert in RescheduleCommon.  For some
history and background, see https://fxbug.dev/457759524.

When resolving https://fxbug.dev/457759524, we failed to cover the
explicit "preempt self" case where a thread might directly call
Scheduler::Preempt.  This change fixes the bug by moving the
self-IPI-when-holding-spinlock check out of RescheduleMask and down
into PreemptLocked.

Add a regression test.

Original-Bug: 457759524
Original-Fixed: 473600952
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1467118
Original-Revision: e9ee1807716f6cb45f29e8bb0687c772911cf450
GitOrigin-RevId: 281c44531968749d07534c544ab2d27ae8386d4d
Change-Id: Ib7ca08ed13ebf953611cb8d54bf44a976d7f41ae
1 file changed
tree: cbf16f09e1c58094ef5c2be7a43a1d3bedbd19c5
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. flower
  6. jiri.lock
  7. MILESTONE
  8. minimal
  9. prebuilts
  10. README.md
  11. stem
  12. test_durations
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance in one of the communication channels documented at get involved.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.