qcacld-3.0: Fix completion timeout value in hdd vdev destroy

In this change Ia6fe504e2a2d01f12c3d3446fffc2fc397566966 qdf event
is replaced with linux completion timeout API.
But linux completion API accepts timeout argument in jiffies,
resulting timeout to set high value of 130 seconds greater
than DSC module timeout 60 seconds. In some cases vdev destroy timer
is taking more time than DSC timeout resulting DSC module to
assert host crash.

Fix is to convert timeout value from mill seconds to jiffies in
completion handler and set proper value of 13 seconds.

Change-Id: I9cfdcec02895747a883c00f6e2889d4f5ec3d7f2
This commit is contained in:
Karthik Kantamneni 2020-02-24 18:05:09 +05:30 committed by nshrivas
parent 5efaca09da
commit 47bb8d7be8

View File

@ -4851,8 +4851,9 @@ int hdd_vdev_destroy(struct hdd_adapter *adapter)
}
/* block on a completion variable until sme session is closed */
rc = wait_for_completion_timeout(&adapter->vdev_destroy_event,
SME_CMD_VDEV_CREATE_DELETE_TIMEOUT);
rc = wait_for_completion_timeout(
&adapter->vdev_destroy_event,
msecs_to_jiffies(SME_CMD_VDEV_CREATE_DELETE_TIMEOUT));
if (rc) {
clear_bit(SME_SESSION_OPENED, &adapter->event_flags);