]> git.karo-electronics.de Git - karo-tx-linux.git/commit
blktrace: Send BLK_TN_PROCESS events to all running traces
authorJan Kara <jack@suse.cz>
Tue, 17 Sep 2013 20:30:31 +0000 (22:30 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 15 Oct 2013 15:17:34 +0000 (09:17 -0600)
commit36a5db5fa230ef651062dbd84ae2327d553f7ba6
tree57ff022a669e9a3424c961457cffcb7ff441269a
parent61e6cfa80de5760bbe406f4e815b7739205754d2
blktrace: Send BLK_TN_PROCESS events to all running traces

Currently each task sends BLK_TN_PROCESS event to the first traced
device it interacts with after a new trace is started. When there are
several traced devices and the task accesses more devices, this logic
can result in BLK_TN_PROCESS being sent several times to some devices
while it is never sent to other devices. Thus blkparse doesn't display
command name when parsing some blktrace files.

Fix the problem by sending BLK_TN_PROCESS event to all traced devices
when a task interacts with any of them.

Signed-off-by: Jan Kara <jack@suse.cz>
Review-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/blktrace_api.h
kernel/trace/blktrace.c