Skip to content

Commit

Permalink
Set exp_obj rotational=0
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Baldyga <[email protected]>
  • Loading branch information
robertbaldyga authored and Jan Musial committed Apr 3, 2024
1 parent 72ff9ca commit 334cc31
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/cas_cache/volume/vol_block_dev_top.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
* Copyright(c) 2012-2022 Intel Corporation
* Copyright(c) 2024 Huawei Technologies Co., Ltd.
* SPDX-License-Identifier: BSD-3-Clause
*/

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 334cc31

Please sign in to comment.