Unverified Commit 4a618915 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files
parents 614e062a 3db05638
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1756,8 +1756,8 @@ static int null_validate_conf(struct nullb_device *dev)
		return -EINVAL;
	}

	dev->blocksize = round_down(dev->blocksize, 512);
	dev->blocksize = clamp_t(unsigned int, dev->blocksize, 512, 4096);
	if (blk_validate_block_size(dev->blocksize))
		return -EINVAL;

	if (dev->queue_mode == NULL_Q_MQ && dev->use_per_node_hctx) {
		if (dev->submit_queues != nr_online_nodes)