Skip to content

Commit 3c8cef9

Browse files
committed
Merge tag 'nvme-5.17-2022-01-27' of git://git.infradead.org/nvme into block-5.17
Pull NVMe fixes from Christoph: "nvme fixes for Linux 5.17 - add the IGNORE_DEV_SUBNQN quirk for Intel P4500/P4600 SSDs (Wu Zheng) - remove the unneeded ret variable in nvmf_dev_show (Changcheng Deng)" * tag 'nvme-5.17-2022-01-27' of git://git.infradead.org/nvme: nvme-fabrics: remove the unneeded ret variable in nvmf_dev_show nvme-pci: add the IGNORE_DEV_SUBNQN quirk for Intel P4500/P4600 SSDs
2 parents 592ee11 + a5f3851 commit 3c8cef9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

drivers/nvme/host/fabrics.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,6 @@ static void __nvmf_concat_opt_tokens(struct seq_file *seq_file)
10921092
static int nvmf_dev_show(struct seq_file *seq_file, void *private)
10931093
{
10941094
struct nvme_ctrl *ctrl;
1095-
int ret = 0;
10961095

10971096
mutex_lock(&nvmf_dev_mutex);
10981097
ctrl = seq_file->private;
@@ -1106,7 +1105,7 @@ static int nvmf_dev_show(struct seq_file *seq_file, void *private)
11061105

11071106
out_unlock:
11081107
mutex_unlock(&nvmf_dev_mutex);
1109-
return ret;
1108+
return 0;
11101109
}
11111110

11121111
static int nvmf_dev_open(struct inode *inode, struct file *file)

drivers/nvme/host/pci.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3391,7 +3391,8 @@ static const struct pci_device_id nvme_id_table[] = {
33913391
NVME_QUIRK_DEALLOCATE_ZEROES, },
33923392
{ PCI_VDEVICE(INTEL, 0x0a54), /* Intel P4500/P4600 */
33933393
.driver_data = NVME_QUIRK_STRIPE_SIZE |
3394-
NVME_QUIRK_DEALLOCATE_ZEROES, },
3394+
NVME_QUIRK_DEALLOCATE_ZEROES |
3395+
NVME_QUIRK_IGNORE_DEV_SUBNQN, },
33953396
{ PCI_VDEVICE(INTEL, 0x0a55), /* Dell Express Flash P4600 */
33963397
.driver_data = NVME_QUIRK_STRIPE_SIZE |
33973398
NVME_QUIRK_DEALLOCATE_ZEROES, },

0 commit comments

Comments
 (0)