aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/futex-contention.py
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.com>2017-04-07 11:10:44 +1000
committerJens Axboe <axboe@fb.com>2017-04-07 09:39:29 -0600
commitdbde775cdbf5e401b8739f30c87d1af12c0028db (patch)
treecdc69a1d6bf1ab83ce3cb1e1fa9a348a5b83d92e /tools/perf/scripts/python/futex-contention.py
parentblock: move timeout field in struct request to pack better (diff)
downloadlinux-dev-dbde775cdbf5e401b8739f30c87d1af12c0028db.tar.xz
linux-dev-dbde775cdbf5e401b8739f30c87d1af12c0028db.zip
block: simple improvements for bio->flags
The comment for the 'flags' field of 'bio' mentions "command" which is no longer stored there, and doesn't mention the bvec pool number, which is. BIO_RESET_BITS is set in such a way that it would need to be updated if new bits were added, which is easy to miss. BVEC_POOL_BITS is larger than needed. The BVEC_POOL_IDX() ranges from 0 to 6, so 3 bits are sufficient. This patch make improvements in each of these areas. Signed-off-by: NeilBrown <neilb@suse.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'tools/perf/scripts/python/futex-contention.py')
0 files changed, 0 insertions, 0 deletions