Fix wrong order call to ocf_alock_waitlist_remove_entry()
Signed-off-by: Amir Haroush <amir.haroush@huawei.com> Signed-off-by: Robert Baldyga <robert.baldyga@huawei.com>
This commit is contained in:
parent
cf5767dcb7
commit
c85a01473f
@ -1,5 +1,6 @@
|
||||
/*
|
||||
* Copyright(c) 2012-2022 Intel Corporation
|
||||
* Copyright(c) 2022-2024 Huawei Technologies
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
@ -135,7 +136,7 @@ err:
|
||||
continue;
|
||||
|
||||
entry = ocf_cl_lock_line_get_entry(alock, req, i);
|
||||
ocf_alock_waitlist_remove_entry(alock, req, i, entry, rw);
|
||||
ocf_alock_waitlist_remove_entry(alock, req, entry, i, rw);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
@ -1,5 +1,6 @@
|
||||
/*
|
||||
* Copyright(c) 2021-2022 Intel Corporation
|
||||
* Copyright(c) 2022-2024 Huawei Technologies
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
@ -92,7 +93,7 @@ static int ocf_mio_lock_slow(struct ocf_alock *alock,
|
||||
err:
|
||||
for (; i >= 0; i--) {
|
||||
entry = ocf_mio_lock_get_entry(alock, req, i);
|
||||
ocf_alock_waitlist_remove_entry(alock, req, i, entry, OCF_WRITE);
|
||||
ocf_alock_waitlist_remove_entry(alock, req, entry, i, OCF_WRITE);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
@ -1,5 +1,6 @@
|
||||
/*
|
||||
* Copyright(c) 2021-2022 Intel Corporation
|
||||
* Copyright(c) 2022-2024 Huawei Technologies
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
@ -130,7 +131,7 @@ err:
|
||||
if (unlikely(entry == OUT_OF_RANGE))
|
||||
continue;
|
||||
|
||||
ocf_alock_waitlist_remove_entry(alock, req, i, entry, OCF_WRITE);
|
||||
ocf_alock_waitlist_remove_entry(alock, req, entry, i, OCF_WRITE);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user