diff options
author | 2015-05-15 15:23:35 +0100 | |
---|---|---|
committer | 2015-05-29 14:19:06 -0400 | |
commit | 3cdf93f9d85979b22b6abfd4ab19350860e4dfac (patch) | |
tree | 4e77c76a3def3bb6aac401047ee7e8566642026a /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | dm cache: pull out some bitset utility functions for reuse (diff) | |
download | linux-dev-3cdf93f9d85979b22b6abfd4ab19350860e4dfac.tar.xz linux-dev-3cdf93f9d85979b22b6abfd4ab19350860e4dfac.zip |
dm bio prison: add dm_cell_promote_or_release()
Rather than always releasing the prisoners in a cell, the client may
want to promote one of them to be the new holder. There is a race here
though between releasing an empty cell, and other threads adding new
inmates. So this function makes the decision with its lock held.
This function can have two outcomes:
i) An inmate is promoted to be the holder of the cell (return value of 0).
ii) The cell has no inmate for promotion and is released (return value of 1).
Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions