aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-add.c
diff options
context:
space:
mode:
authorAlexander Lobakin <[email protected]>2020-06-23 16:51:32 +0300
committerDavid S. Miller <[email protected]>2020-06-23 15:01:16 -0700
commitccd7c7ce167a21dbf2b698ffcf00f11d96d44f9b (patch)
treefe7576028a936a542184eb1e7fa397a1deac732f /lib/mpi/mpi-add.c
parent4079c7f7a2a00ab403c177ce723b560de59139c3 (diff)
net: qed: fix NVMe login fails over VFs
25ms sleep cycles in waiting for PF response are excessive and may lead to different timeout failures. Start to wait with short udelays, and in most cases polling will end here. If the time was not sufficient, switch to msleeps. usleep_range() may go far beyond 100us depending on platform and tick configuration, hence atomic udelays for consistency. Also add explicit DMA barriers since 'done' always comes from a shared request-response DMA pool, and note that in the comment nearby. Fixes: 1408cc1fa48c ("qed: Introduce VFs") Signed-off-by: Alexander Lobakin <[email protected]> Signed-off-by: Igor Russkikh <[email protected]> Signed-off-by: Michal Kalderon <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions