]> git.baikalelectronics.ru Git - kernel.git/commit
block: make blktrace use per-cpu buffers for message notes
authorJens Axboe <jens.axboe@oracle.com>
Wed, 28 May 2008 12:45:33 +0000 (14:45 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 28 May 2008 12:49:27 +0000 (14:49 +0200)
commit771e77c441b83cd1e146a3e1a22920cea232b35e
tree1c8a3d03fcb0e620c8f2244962fb249cff51fec4
parent80a3863ac436cd13fb9ffa7e3d41b320a06c35be
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: Jens Axboe <jens.axboe@oracle.com>
block/blktrace.c
include/linux/blktrace_api.h