Merge pull request #1466 from Open-CAS/fix_rota_flag

Set exp_obj rotational=0
This commit is contained in:
Robert Baldyga 2024-04-03 16:33:57 +02:00 committed by GitHub
commit ad8e68ce4b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,5 +1,6 @@
/* /*
* Copyright(c) 2012-2022 Intel Corporation * Copyright(c) 2012-2022 Intel Corporation
* Copyright(c) 2024 Huawei Technologies Co., Ltd.
* SPDX-License-Identifier: BSD-3-Clause * 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, blkdev_set_discard_properties(cache, exp_q, cache_bd, core_bd,
sectors); sectors);
exp_q->queue_flags |= (1 << QUEUE_FLAG_NONROT);
return 0; return 0;
} }