mariadb/storage
Marko Mäkelä 67da6e6388 MDEV-34431: Avoid spin loops on page I/O waits
While waiting for for I/O completion, let us skip spin loops.
Even on fast storage, reading a page into the buffer pool takes
so long that a spin loop would only end up wasting CPU time.

block_lock::s_lock_nospin(): A no-spin variant of acquiring a shared
buffer page latch. Regular s_lock() always involveis a spin loop.

ssux_lock_impl::rd_lock_spin(), ssux_lock_impl::rd_lock_nospin():
Split from rd_wait().

ssux_lock_impl::rd_lock(): Invoke either rd_lock_nospin() or
rd_lock_try() and rd_lock_spin().

buf_page_get_low(): After acquiring a page latch on an io-fixed block,
try to optimize operations on the page latch.
2025-07-21 09:50:00 +03:00
..
archive Merge 10.6 into 10.11 2024-06-27 10:26:09 +03:00
blackhole Merge 10.11 into 11.4 2024-12-02 11:35:34 +02:00
columnstore Merge branch '10.11' into 11.4 2025-06-17 09:50:22 +02:00
connect Merge branch '10.11' into 11.4 2025-06-17 09:50:22 +02:00
csv Merge 10.11 into 11.4 2024-12-02 11:35:34 +02:00
example Merge branch '10.11' into 11.4 2025-06-17 09:50:22 +02:00
federated Merge 10.11 into 11.4 2024-12-02 11:35:34 +02:00
federatedx Merge branch '10.11' into 11.4 2025-04-26 10:53:02 +02:00
heap Fixed costs in JOIN_TAB::estimate_scan_time() and HEAP 2025-02-10 15:59:28 +02:00
innobase MDEV-34431: Avoid spin loops on page I/O waits 2025-07-21 09:50:00 +03:00
maria Merge branch '10.11' into 11.4 2025-06-17 09:50:22 +02:00
mroonga Merge branch '10.11' into 11.4 2025-06-17 09:50:22 +02:00
myisam Merge branch '10.11' into 11.4 2025-06-17 09:50:22 +02:00
myisammrg Merge 10.11 into 11.4 2025-01-09 07:58:08 +02:00
oqgraph Merge 10.11 into 11.4 2024-12-02 11:35:34 +02:00
perfschema Merge branch '10.11' into 11.4 2025-06-17 09:50:22 +02:00
rocksdb Merge branch '10.11' into 11.4 2025-06-17 09:50:22 +02:00
sequence Merge branch '10.11' into 11.1 2024-07-08 22:40:16 +02:00
sphinx Merge 10.11 into 11.4 2024-12-02 11:35:34 +02:00
spider Merge branch '10.11' into 11.4 2025-06-17 09:50:22 +02:00
test_sql_discovery Merge 10.5 into 10.6 2024-06-24 13:09:47 +03:00