// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (c) 2017-2018 Christoph Hellwig.
*/
#include <linux/backing-dev.h>
#include <linux/moduleparam.h>
#include <linux/vmalloc.h>
#include <trace/events/block.h>
#include "nvme.h"
bool multipath = true;
static bool multipath_always_on;
static int multipath_param_set(const char *val, const struct kernel_param *kp)
{
int ret;
bool *arg = kp->arg;
ret = param_set_bool(val, kp);
if (ret)
return ret;
if (multipath_always_on && !*arg) {
pr_err("Can't disable multipath when multipath_always_on is configured.\n");
*arg = true;
return -EINVAL;
}
return 0;
}