dev_dbg(anv->dev, "ANS booted successfully.");
- /*
- * Limit the max command size to prevent iod->sg allocations going
- * over a single page.
- */
- anv->ctrl.max_hw_sectors = min_t(u32, NVME_MAX_KB_SZ << 1,
- dma_max_mapping_size(anv->dev) >> 9);
- anv->ctrl.max_segments = NVME_MAX_SEGS;
-
dma_set_max_seg_size(anv->dev, 0xffffffff);
/*
goto put_dev;
}
+ /*
+ * Limit the max command size to prevent iod->sg allocations going
+ * over a single page.
+ */
+ anv->ctrl.max_hw_sectors = min_t(u32, NVME_MAX_KB_SZ << 1,
+ dma_max_mapping_size(anv->dev) >> 9);
+ anv->ctrl.max_segments = NVME_MAX_SEGS;
+
anv->ctrl.admin_q = blk_mq_alloc_queue(&anv->admin_tagset, NULL, NULL);
if (IS_ERR(anv->ctrl.admin_q)) {
ret = -ENOMEM;