summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/ntb
diff options
context:
space:
mode:
authorLogan Gunthorpe <logang@deltatee.com>2019-01-09 22:22:32 +0300
committerJon Mason <jdmason@kudzu.us>2020-06-06 03:02:09 +0300
commit34d8673a01b053b6231a995a4eec9341163d63be (patch)
treef179c45744e4bd503aa59e0b00ee0c2a25c2003c /tools/testing/selftests/ntb
parentb54369a248c2e033bfcf5d6917e08cf9d73d54a6 (diff)
downloadlinux-34d8673a01b053b6231a995a4eec9341163d63be.tar.xz
NTB: perf: Fix race condition when run with ntb_test
When running ntb_test, the script tries to run the ntb_perf test immediately after probing the modules. Since adding multi-port support, this fails seeing the new initialization procedure in ntb_perf can not complete instantly. To fix this we add a completion which is waited on when a test is started. In this way, run can be written any time after the module is loaded and it will wait for the initialization to complete instead of sending an error. Fixes: 5648e56d03fa ("NTB: ntb_perf: Add full multi-port NTB API support") Signed-off-by: Logan Gunthorpe <logang@deltatee.com> Acked-by: Allen Hubbe <allenbh@gmail.com> Tested-by: Alexander Fomichev <fomichev.ru@gmail.com> Signed-off-by: Jon Mason <jdmason@kudzu.us>
Diffstat (limited to 'tools/testing/selftests/ntb')
0 files changed, 0 insertions, 0 deletions