• J
    aio: add missing smp_rmb() in read_events_ring · 2ff396be
    Jeff Moyer 提交于
    We ran into a case on ppc64 running mariadb where io_getevents would
    return zeroed out I/O events.  After adding instrumentation, it became
    clear that there was some missing synchronization between reading the
    tail pointer and the events themselves.  This small patch fixes the
    problem in testing.
    
    Thanks to Zach for helping to look into this, and suggesting the fix.
    Signed-off-by: NJeff Moyer <jmoyer@redhat.com>
    Signed-off-by: NBenjamin LaHaise <bcrl@kvack.org>
    Cc: stable@vger.kernel.org
    2ff396be
aio.c 41.6 KB