Skip to content

Commit

Permalink
build rhel91 fix (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
natalia-zelazna committed Sep 15, 2023
1 parent 20f2a00 commit 037cee0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
14 changes: 14 additions & 0 deletions src/configure-tests/feature-tests/gd_owns_queue.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// SPDX-License-Identifier: GPL-2.0-only

/*
* Copyright (C) 2023 Datto Inc.
*/

#include "includes.h"

MODULE_LICENSE("GPL");

static inline void dummy(void){
struct gendisk *sd_gd; = NULL;
set_bit(GD_OWNS_QUEUE, &sd_gd->state);
}
3 changes: 2 additions & 1 deletion src/tracer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1035,8 +1035,9 @@ static int __tracer_setup_snap(struct snap_device *dev, unsigned int minor,
LOG_DEBUG("setting up make request function");
blk_queue_make_request(dev->sd_queue, snap_mrf);
#endif
#if defined HAVE_GD_OWNS_QUEUE
set_bit(GD_OWNS_QUEUE, &dev->sd_gd->state);

#endif
// give our request queue the same properties as the base device's
LOG_DEBUG("setting queue limits");
blk_set_stacking_limits(&dev->sd_queue->limits);
Expand Down

0 comments on commit 037cee0

Please sign in to comment.