summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@sandisk.com>2016-11-18 23:27:42 +0100
committerMike Snitzer <snitzer@redhat.com>2016-12-08 20:13:07 +0100
commitb23df0d048e5f137ad5c2a116ec0849a98d43b96 (patch)
tree9f3f869514bced1a8b46996c3d6538182c407da4
parentdm: use blk_set_queue_dying() in __dm_destroy() (diff)
downloadlinux-b23df0d048e5f137ad5c2a116ec0849a98d43b96.tar.xz
linux-b23df0d048e5f137ad5c2a116ec0849a98d43b96.zip
dm rq: simplify use_blk_mq initialization
Use a single statement to declare and initialize 'use_blk_mq' instead of two statements. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
-rw-r--r--drivers/md/dm-rq.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/md/dm-rq.c b/drivers/md/dm-rq.c
index 54b081588b55..87ca5dbbe45d 100644
--- a/drivers/md/dm-rq.c
+++ b/drivers/md/dm-rq.c
@@ -23,11 +23,7 @@ static unsigned dm_mq_queue_depth = DM_MQ_QUEUE_DEPTH;
#define RESERVED_REQUEST_BASED_IOS 256
static unsigned reserved_rq_based_ios = RESERVED_REQUEST_BASED_IOS;
-#ifdef CONFIG_DM_MQ_DEFAULT
-static bool use_blk_mq = true;
-#else
-static bool use_blk_mq = false;
-#endif
+static bool use_blk_mq = IS_ENABLED(CONFIG_DM_MQ_DEFAULT);
bool dm_use_blk_mq_default(void)
{