diff options
author | Keith Busch <kbusch@kernel.org> | 2019-07-30 01:34:52 +0300 |
---|---|---|
committer | Sagi Grimberg <sagi@grimberg.me> | 2019-08-01 04:03:36 +0300 |
commit | bd46a90634302bfe791e93ad5496f98f165f7ae0 (patch) | |
tree | 1fe2f3a92c2bdc4a37ed5f20113f91355dcfff61 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 0157ec8dad3c8fc9bc9790f76e0831ffdaf2e7f0 (diff) | |
download | linux-bd46a90634302bfe791e93ad5496f98f165f7ae0.tar.xz |
nvme-pci: Fix async probe remove race
Ensure the controller is not in the NEW state when nvme_probe() exits.
This will always allow a subsequent nvme_remove() to set the state to
DELETING, fixing a potential race between the initial asynchronous probe
and device removal.
Reported-by: Li Zhong <lizhongfs@gmail.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions