Remove unused fields
Signed-off-by: Jan Musial <jan.musial@huawei.com> Signed-off-by: Robert Baldyga <robert.baldyga@huawei.com>
This commit is contained in:
parent
b9110635c1
commit
ab81ac667b
@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright(c) 2012-2022 Intel Corporation
|
* Copyright(c) 2012-2022 Intel Corporation
|
||||||
|
* Copyright(c) 2024 Huawei Technologies
|
||||||
* SPDX-License-Identifier: BSD-3-Clause
|
* SPDX-License-Identifier: BSD-3-Clause
|
||||||
*/
|
*/
|
||||||
#ifndef __CASDISK_EXP_OBJ_H__
|
#ifndef __CASDISK_EXP_OBJ_H__
|
||||||
@ -46,9 +47,6 @@ struct cas_exp_obj {
|
|||||||
|
|
||||||
struct blk_mq_tag_set tag_set;
|
struct blk_mq_tag_set tag_set;
|
||||||
|
|
||||||
atomic_t pt_ios;
|
|
||||||
atomic_t *pending_rqs;
|
|
||||||
|
|
||||||
void *private;
|
void *private;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -3504,22 +3504,6 @@ put:
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int cache_mngt_wait_for_rq_finish_visitor(ocf_core_t core, void *cntx)
|
|
||||||
{
|
|
||||||
ocf_volume_t obj = ocf_core_get_volume(core);
|
|
||||||
struct bd_object *bdobj = bd_object(obj);
|
|
||||||
|
|
||||||
while (atomic64_read(&bdobj->pending_rqs))
|
|
||||||
io_schedule();
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
void cache_mngt_wait_for_rq_finish(ocf_cache_t cache)
|
|
||||||
{
|
|
||||||
ocf_core_visit(cache, cache_mngt_wait_for_rq_finish_visitor, NULL, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
int cache_mngt_set_core_params(struct kcas_set_core_param *info)
|
int cache_mngt_set_core_params(struct kcas_set_core_param *info)
|
||||||
{
|
{
|
||||||
ocf_cache_t cache;
|
ocf_cache_t cache;
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright(c) 2012-2022 Intel Corporation
|
* Copyright(c) 2012-2022 Intel Corporation
|
||||||
|
* Copyright(c) 2024 Huawei Technologies
|
||||||
* SPDX-License-Identifier: BSD-3-Clause
|
* SPDX-License-Identifier: BSD-3-Clause
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -25,12 +26,6 @@ struct bd_object {
|
|||||||
uint32_t opened_by_bdev : 1;
|
uint32_t opened_by_bdev : 1;
|
||||||
/*!< Opened by supplying bdev manually */
|
/*!< Opened by supplying bdev manually */
|
||||||
|
|
||||||
atomic64_t pending_rqs;
|
|
||||||
/*!< This fields describes in flight IO requests */
|
|
||||||
|
|
||||||
struct workqueue_struct *btm_wq;
|
|
||||||
/*< Workqueue for I/O internally trigerred in bottom vol */
|
|
||||||
|
|
||||||
struct workqueue_struct *expobj_wq;
|
struct workqueue_struct *expobj_wq;
|
||||||
/*< Workqueue for I/O handled by top vol */
|
/*< Workqueue for I/O handled by top vol */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user