diff options
| author | Christoph Hellwig <[email protected]> | 2017-10-18 13:20:01 +0200 |
|---|---|---|
| committer | Christoph Hellwig <[email protected]> | 2017-10-27 09:02:58 +0300 |
| commit | 2dd4122854f697afc777582d18548dded03ce5dd (patch) | |
| tree | ff1dfb91c68fb749ab29913e036896e166a15139 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | e62a538da2e7401bad5293d210ce00583ac12f39 (diff) | |
nvme: use kref_get_unless_zero in nvme_find_get_ns
For kref_get_unless_zero to protect against lookup vs free races we need
to use it in all places where we aren't guaranteed to already hold a
reference. There is no such guarantee in nvme_find_get_ns, so switch to
kref_get_unless_zero in this function.
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Sagi Grimberg <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions