Skip to content

Commit 75199aa

Browse files
committed
Merge branch 'nvme-5.2' of git://git.infradead.org/nvme into for-5.2/block
Pull NVMe changes from Christoph: "Below is the first batch of nvme updates for 5.2. This includes the performance improvements for single segment I/O on PCIe, which introduce new block helpers, so it might be a good idea to get them in early. - various performance optimizations in the PCIe code (Keith and me) - new block helpers to support the above (me) - nvmet error conversion cleanup (me) - nvmet-fc variable sized array cleanup (Gustavo) - passthrough ioctl error printk cleanup (Kenneth) - small nvmet fixes (Max) - endianess conversion cleanup (Max) - nvmet-tcp faspath completion optimization (Sagi)" * 'nvme-5.2' of git://git.infradead.org/nvme: (24 commits) nvme: log the error status on Identify Namespace failure nvmet: add safety check for subsystem lock during nvmet_ns_changed nvmet: never fail double namespace enablement nvme-pci: tidy up nvme_map_data nvme-pci: optimize mapping single segment requests using SGLs nvme-pci: optimize mapping of small single segment requests nvme-pci: remove the inline scatterlist optimization nvme-pci: split metadata handling from nvme_map_data / nvme_unmap_data nvme-pci: do not build a scatterlist to map metadata nvme-pci: only call nvme_unmap_data for requests transferring data nvme-pci: merge nvme_free_iod into nvme_unmap_data nvme-pci: move the call to nvme_cleanup_cmd out of nvme_unmap_data nvme-pci: remove nvme_init_iod block: add dma_map_bvec helper block: add a rq_dma_dir helper block: add a rq_integrity_vec helper block: add a req_bvec helper nvme-pci: remove unused nvme_iod member nvme-pci: remove q_dmadev from nvme_queue nvme-pci: use a flag for polled queues ...
2 parents 2b24e6f + d0de579 commit 75199aa

7 files changed

Lines changed: 197 additions & 152 deletions

File tree

‎drivers/nvme/host/core.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ static struct nvme_id_ns *nvme_identify_ns(struct nvme_ctrl *ctrl,
11051105

11061106
error = nvme_submit_sync_cmd(ctrl->admin_q, &c, id, sizeof(*id));
11071107
if (error) {
1108-
dev_warn(ctrl->device, "Identify namespace failed\n");
1108+
dev_warn(ctrl->device, "Identify namespace failed (%d)\n", error);
11091109
kfree(id);
11101110
return NULL;
11111111
}
@@ -1588,7 +1588,7 @@ static bool nvme_ns_ids_equal(struct nvme_ns_ids *a, struct nvme_ns_ids *b)
15881588
static void nvme_update_disk_info(struct gendisk *disk,
15891589
struct nvme_ns *ns, struct nvme_id_ns *id)
15901590
{
1591-
sector_t capacity = le64_to_cpup(&id->nsze) << (ns->lba_shift - 9);
1591+
sector_t capacity = le64_to_cpu(id->nsze) << (ns->lba_shift - 9);
15921592
unsigned short bs = 1 << ns->lba_shift;
15931593

15941594
blk_mq_freeze_queue(disk->queue);
@@ -2549,7 +2549,7 @@ int nvme_init_identify(struct nvme_ctrl *ctrl)
25492549
ctrl->crdt[2] = le16_to_cpu(id->crdt3);
25502550

25512551
ctrl->oacs = le16_to_cpu(id->oacs);
2552-
ctrl->oncs = le16_to_cpup(&id->oncs);
2552+
ctrl->oncs = le16_to_cpu(id->oncs);
25532553
ctrl->oaes = le32_to_cpu(id->oaes);
25542554
atomic_set(&ctrl->abort_limit, id->acl + 1);
25552555
ctrl->vwc = id->vwc;

0 commit comments

Comments
 (0)