aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorEric Biggers <[email protected]>2020-09-15 20:53:15 -0700
committerJens Axboe <[email protected]>2020-10-05 10:47:43 -0600
commitcf785af19319f9fc0fc0c0604d259f1ef31b502f (patch)
treeb047fc45f79597a6943d9408e66a376483c4b5c3 /tools/perf/scripts/python/export-to-sqlite.py
parent93f221ae08381e994ac9f9ff6aa743e612e49718 (diff)
block: warn if !__GFP_DIRECT_RECLAIM in bio_crypt_set_ctx()
bio_crypt_set_ctx() assumes its gfp_mask argument always includes __GFP_DIRECT_RECLAIM, so that the mempool_alloc() will always succeed. For now this assumption is still fine, since no callers violate it. Making bio_crypt_set_ctx() able to fail would add unneeded complexity. However, if a caller didn't use __GFP_DIRECT_RECLAIM, it would be very hard to notice the bug. Make it easier by adding a WARN_ON_ONCE(). Signed-off-by: Eric Biggers <[email protected]> Reviewed-by: Satya Tangirala <[email protected]> Cc: Miaohe Lin <[email protected]> Cc: Satya Tangirala <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions