Skip to content
  • Jan Kara's avatar
    blktrace: Send BLK_TN_PROCESS events to all running traces · a404d557
    Jan Kara authored
    
    
    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: default avatarJan Kara <jack@suse.cz>
    Review-by: default avatarJeff Moyer <jmoyer@redhat.com>
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    a404d557