From 334cc31a5c05e9e73e5ef2001ef086561f5334d6 Mon Sep 17 00:00:00 2001 From: Robert Baldyga Date: Thu, 21 Dec 2023 12:01:11 +0100 Subject: [PATCH] Set exp_obj rotational=0 Signed-off-by: Robert Baldyga --- modules/cas_cache/volume/vol_block_dev_top.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/cas_cache/volume/vol_block_dev_top.c b/modules/cas_cache/volume/vol_block_dev_top.c index 37fc77b62..bcfa953c4 100644 --- a/modules/cas_cache/volume/vol_block_dev_top.c +++ b/modules/cas_cache/volume/vol_block_dev_top.c @@ -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; }