summaryrefslogtreecommitdiff
path: root/sys-kernel/linux-sources-redcore-lts-legacy/files/5.4-nvme-suspend-resume-workaround.patch
blob: 684a939f0262a64f97015fb74aa733286a41d7c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -Naur linux-5.2.14-nvme-resume/drivers/nvme/host/pci.c linux-5.2.14-nvme/drivers/nvme/host/pci.c
--- linux-5.2.14-nvme-resume/drivers/nvme/host/pci.c	2019-09-11 21:23:38.746030937 +0200
+++ linux-5.2.14-nvme/drivers/nvme/host/pci.c	2019-09-11 23:29:45.638351764 +0200
@@ -1072,6 +1072,8 @@
 	u16 start, end;
 	int found;
 
+	if (!nvme_cqe_pending(nvmeq))
+                return 0;
 	/*
 	 * For a poll queue we need to protect against the polling thread
 	 * using the CQ lock.  For normal interrupt driven threads we have