Skip to content
Commit 64565911 authored by Jens Axboe's avatar Jens Axboe
Browse files

block: make blktrace use per-cpu buffers for message notes



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>
parent 4722dc52
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment