summaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorDaniel Wagner <dwagner@suse.de>2021-09-02 12:20:02 +0300
committerChristoph Hellwig <hch@lst.de>2021-09-13 18:04:04 +0300
commit9edceaf43050f5ba1dd7d0011bcf68a736a17743 (patch)
treea6e87f932394ccbc624e92414f4306d543f76af9 /tools/perf/util/scripting-engines/trace-event-python.c
parent0bd46e22c5ec3dbfb81b60de475151e3f6b411c2 (diff)
downloadlinux-9edceaf43050f5ba1dd7d0011bcf68a736a17743.tar.xz
nvme: avoid race in shutdown namespace removal
When we remove the siblings entry, we update ns->head->list, hence we can't separate the removal and test for being empty. They have to be in the same critical section to avoid a race. To avoid breaking the refcounting imbalance again, add a list empty check to nvme_find_ns_head. Fixes: 5396fdac56d8 ("nvme: fix refcounting imbalance when all paths are down") Signed-off-by: Daniel Wagner <dwagner@suse.de> Reviewed-by: Hannes Reinecke <hare@suse.de> Tested-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions