Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Thumshirn <jthumshirn@suse.de>2019-04-04 13:55:00 +0200
committerJohannes Thumshirn <jthumshirn@suse.de>2019-04-04 13:55:00 +0200
commitcd6148ef5370b9430589a400f068f15a84792893 (patch)
tree0398a03d3560b0774b7d41dc7054114d831a088e
parent50e78d299b23b8eb1ceb591f73d1e8dfd02e3b25 (diff)
Refresh
patches.drivers/nvme-tcp-add-NVMe-over-TCP-host-driver.patch. The NVMe over Fabrics TCP Transport was introduced in the upstream kernel after commit aa563d7bca6e ("iov_iter: Separate type from direction and use accessor functions") changed the way a iov iterator is initialized. This causes the BUG_ON() in iov_iter_bvec(), checking if the ITER_BVEC flag is set, to trigger, as the newer upstream variant doesn't need this anymore. Set the flag in nvme_tcp_init_iter()'s call to iov_iter_bvec() and we're safe again.
-rw-r--r--patches.drivers/nvme-tcp-add-NVMe-over-TCP-host-driver.patch22
1 files changed, 6 insertions, 16 deletions
diff --git a/patches.drivers/nvme-tcp-add-NVMe-over-TCP-host-driver.patch b/patches.drivers/nvme-tcp-add-NVMe-over-TCP-host-driver.patch
index b3b96abc66..3f65e54de0 100644
--- a/patches.drivers/nvme-tcp-add-NVMe-over-TCP-host-driver.patch
+++ b/patches.drivers/nvme-tcp-add-NVMe-over-TCP-host-driver.patch
@@ -25,14 +25,12 @@ Signed-off-by: Solganik Alexander <sashas@lightbitslabs.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Hannes Reinecke <hare@suse.com>
---
- drivers/nvme/host/Kconfig | 15 +
- drivers/nvme/host/Makefile | 3 +
- drivers/nvme/host/tcp.c | 2242 ++++++++++++++++++++++++++++++++++++++++++++
+ drivers/nvme/host/Kconfig | 15
+ drivers/nvme/host/Makefile | 3
+ drivers/nvme/host/tcp.c | 2242 +++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 2260 insertions(+)
create mode 100644 drivers/nvme/host/tcp.c
-diff --git a/drivers/nvme/host/Kconfig b/drivers/nvme/host/Kconfig
-index 88a8b5916624..0f345e207675 100644
--- a/drivers/nvme/host/Kconfig
+++ b/drivers/nvme/host/Kconfig
@@ -57,3 +57,18 @@ config NVME_FC
@@ -54,11 +52,9 @@ index 88a8b5916624..0f345e207675 100644
+ from https://github.com/linux-nvme/nvme-cli.
+
+ If unsure, say N.
-diff --git a/drivers/nvme/host/Makefile b/drivers/nvme/host/Makefile
-index aea459c65ae1..8a4b671c5f0c 100644
--- a/drivers/nvme/host/Makefile
+++ b/drivers/nvme/host/Makefile
-@@ -7,6 +7,7 @@ obj-$(CONFIG_BLK_DEV_NVME) += nvme.o
+@@ -6,6 +6,7 @@ obj-$(CONFIG_BLK_DEV_NVME) += nvme.o
obj-$(CONFIG_NVME_FABRICS) += nvme-fabrics.o
obj-$(CONFIG_NVME_RDMA) += nvme-rdma.o
obj-$(CONFIG_NVME_FC) += nvme-fc.o
@@ -66,15 +62,12 @@ index aea459c65ae1..8a4b671c5f0c 100644
nvme-core-y := core.o
nvme-core-$(CONFIG_TRACING) += trace.o
-@@ -21,3 +22,5 @@ nvme-fabrics-y += fabrics.o
+@@ -20,3 +21,5 @@ nvme-fabrics-y += fabrics.o
nvme-rdma-y += rdma.o
nvme-fc-y += fc.o
+
+nvme-tcp-y += tcp.o
-diff --git a/drivers/nvme/host/tcp.c b/drivers/nvme/host/tcp.c
-new file mode 100644
-index 000000000000..15543358e245
--- /dev/null
+++ b/drivers/nvme/host/tcp.c
@@ -0,0 +1,2242 @@
@@ -309,7 +302,7 @@ index 000000000000..15543358e245
+ offset = bio->bi_iter.bi_bvec_done;
+ }
+
-+ iov_iter_bvec(&req->iter, dir, vec, nsegs, size);
++ iov_iter_bvec(&req->iter, ITER_BVEC | dir, vec, nsegs, size);
+ req->iter.iov_offset = offset;
+}
+
@@ -2320,6 +2313,3 @@ index 000000000000..15543358e245
+module_exit(nvme_tcp_cleanup_module);
+
+MODULE_LICENSE("GPL v2");
---
-2.16.4
-