• Jens Axboe's avatar
    block: make blktrace use per-cpu buffers for message notes · 64565911
    Jens Axboe authored
    Currently it uses a single static char array, but that risks
    being corrupted when multiple users issue message notes at the
    same time. Make the buffers dynamically allocated when the trace
    is setup and make them per-cpu instead.
    
    The default max message size of 1k is also very large, the
    interface is mainly for small text notes. So shrink it to 128 bytes.
    Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
    64565911
blktrace.c 11.9 KB