diff options
author | Jan Kara <jack@suse.cz> | 2019-02-07 13:55:39 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-02-07 22:57:17 +0300 |
commit | 0803de78049fe1b0baf44bcddc727b036fb9139b (patch) | |
tree | ffaa5b77647c61a2a92cd054e1fbe81283213f29 /include/linux/stmp_device.h | |
parent | 43636c804df0126da669c261fc820fb22f62bfc2 (diff) | |
download | linux-0803de78049fe1b0baf44bcddc727b036fb9139b.tar.xz |
blktrace: Show requests without sector
Currently, blktrace will not show requests that don't have any data as
rq->__sector is initialized to -1 which is out of device range and thus
discarded by act_log_check(). This is most notably the case for cache
flush requests sent to the device. Fix the problem by making
blk_rq_trace_sector() return 0 for requests without initialized sector.
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/stmp_device.h')
0 files changed, 0 insertions, 0 deletions