• Marko Mäkelä's avatar
    MDEV-26674 follow-up: Bless Linux 5.15.3 · de7db551
    Marko Mäkelä authored
    In commit 1193a793 we
    set innodb_use_native_aio=OFF when using io_uring
    on a kernel where write requests could potentially be lost.
    
    The last reproducible issue was fixed in Linux 5.16-rc1
    https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v5.16-rc1&id=d3e3c102d107bb84251455a298cf475f24bab995
    
    
    and the fix was backported to 5.15.3.
    
    Hence, using a 5.16 or later kernel should be fine.
    The Debian kernel 5.15.0-1-amd64 (5.15.3-1) was tested.
    On Debian, utsname::release or uname -r does not reflect the
    exact minor version while utsname::version and uname -v does.
    
    On Fedora however the utsname::version is rather different:
    
      $ uname -r
      5.14.20-200.fc34.x86_64
      $ uname -v
      #1 SMP Thu Nov 18 22:03:20 UTC 2021
    
    As such we use the version, but fall back to the release if
    there isn't the beginnings of a kernel version in the version.
    
    Thanks to Daniel Black for reporting the Linux kernel bug and
    Jens Axboe for actually fixing it.
    Co-Authored-By: default avatarDaniel Black <daniel@mariadb.org>
    
    Closes: #1953
    de7db551
ha_innodb.cc 611 KB