diff options
author | Martin K. Petersen <[email protected]> | 2012-09-18 12:19:26 -0400 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2012-09-20 14:31:41 +0200 |
commit | f31dc1cd490539e2b62a126bc4dc2495b165d772 (patch) | |
tree | e8a917161111266f72a7aea539c9562dc2f2653d /tools/perf/util/scripting-engines/trace-event-perl.c | |
parent | e2a60da74fc8215c68509a89e9a69c66363153db (diff) |
block: Consolidate command flag and queue limit checks for merges
- blk_check_merge_flags() verifies that cmd_flags / bi_rw are
compatible. This function is called for both req-req and req-bio
merging.
- blk_rq_get_max_sectors() and blk_queue_get_max_sectors() can be used
to query the maximum sector count for a given request or queue. The
calls will return the right value from the queue limits given the
type of command (RW, discard, write same, etc.)
Signed-off-by: Martin K. Petersen <[email protected]>
Acked-by: Mike Snitzer <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions