diff options
author | Bart Van Assche <[email protected]> | 2017-06-20 11:15:43 -0700 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2017-06-20 19:27:14 -0600 |
commit | c3a148d20affcc334348402865169a61000d3905 (patch) | |
tree | 62212e8c99043deb1ab66785211ddb87408fab2d /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | c8d9cf22cf0f89d1249a57ade5a1949c62075ce6 (diff) |
blk-mq: Initialize .rq_flags in blk_mq_rq_ctx_init()
Initialization of blk-mq requests is a bit weird: blk_mq_rq_ctx_init()
is called after a value has been assigned to .rq_flags and .rq_flags
is initialized in __blk_mq_finish_request(). Initialize .rq_flags in
blk_mq_rq_ctx_init() instead of relying on __blk_mq_finish_request().
Moving the initialization of .rq_flags is fine because all changes
and tests of .rq_flags occur between blk_get_request() and finishing
a request.
Signed-off-by: Bart Van Assche <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Hannes Reinecke <[email protected]>
Cc: Omar Sandoval <[email protected]>
Cc: Ming Lei <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions