Set exp_obj rotational=0

Signed-off-by: Robert Baldyga <robert.baldyga@huawei.com>
This commit is contained in:
Robert Baldyga 2023-12-21 12:01:11 +01:00 committed by Jan Musial
parent 72ff9ca66a
commit 334cc31a5c

View File

@ -1,5 +1,6 @@
/*
* Copyright(c) 2012-2022 Intel Corporation
* Copyright(c) 2024 Huawei Technologies Co., Ltd.
* SPDX-License-Identifier: BSD-3-Clause
*/
@ -141,6 +142,8 @@ static int blkdev_core_set_geometry(struct cas_disk *dsk, void *private)
blkdev_set_discard_properties(cache, exp_q, cache_bd, core_bd,
sectors);
exp_q->queue_flags |= (1 << QUEUE_FLAG_NONROT);
return 0;
}