Skip to contentSkip to conversation

lightnvm: deprecated OCSSD support and schedule it for removal in Linux 5.15

PATCH In review Christoph Hellwig 4 participants 6 messages Apr 12, 2021

Subsystems (2)
lore
Share & tools
lore

Christoph Hellwig

author maintainer
#0 lore raw

PATCH 1/1 lightnvm: deprecated OCSSD support and schedule it for removal in Linux 5.15

Lightnvm was an innovative idea to expose more low-level control over SSDs. But it failed to get properly standardized and remains a non-standarized extension to NVMe that requires vendor specific quirks for a few now mostly obsolete SSD devices. The standardized ZNS command set for NVMe has take over a lot of the approaches and allows for fully standardized operation.

Remove the Linux code to support open channel SSDs as the few production deployments of the above mentioned SSDs are using userspace driver stacks instead of the fairly limited Linux support.

---
 drivers/lightnvm/Kconfig | 4 +++-
 drivers/lightnvm/core.c  | 2 ++
 2 files changed, 5 insertions(+), 1 deletion(-)
drivers/lightnvm/Kconfig +3 -1
index 4c2ce210c1237d..04caa0f2d445c7 100644
@@ -4,7 +4,7 @@
 #
 
 menuconfig NVM
-	bool "Open-Channel SSD target support"
+	bool "Open-Channel SSD target support (DEPRECATED)"
 	depends on BLOCK
 	help
 	  Say Y here to get to enable Open-channel SSDs.
@@ -15,6 +15,8 @@ menuconfig NVM
 	  If you say N, all options in this submenu will be skipped and disabled
 	  only do this if you know what you are doing.
 
+	  This code is deprecated and will be removed in Linux 5.15.
+
 if NVM
 
 config NVM_PBLK
drivers/lightnvm/core.c +2 -0
index 28ddcaa5358b14..4394f47c81296a 100644
@@ -1174,6 +1174,8 @@ int nvm_register(struct nvm_dev *dev)
 {
 	int ret, exp_pool_size;
 
+	pr_warn_once("lightnvm support is deprecated and will be removed in Linux 5.15.\n");
+
 	if (!dev->q || !dev->ops) {
 		kref_put(&dev->ref, nvm_free);
 		return -EINVAL;
Signature · 1 line
2.30.1
#1 lore raw
Quoted 43 lines · Christoph Hellwig

Lightnvm was an innovative idea to expose more low-level control over SSDs. But it failed to get properly standardized and remains a non-standarized extension to NVMe that requires vendor specific quirks for a few now mostly obsolete SSD devices. The standardized ZNS command set for NVMe has take over a lot of the approaches and allows for fully standardized operation.

Remove the Linux code to support open channel SSDs as the few production deployments of the above mentioned SSDs are using userspace driver stacks instead of the fairly limited Linux support.

---
  drivers/lightnvm/Kconfig | 4 +++-
  drivers/lightnvm/core.c  | 2 ++
  2 files changed, 5 insertions(+), 1 deletion(-)
drivers/lightnvm/Kconfig +3 -1
index 4c2ce210c1237d..04caa0f2d445c7 100644
@@ -4,7 +4,7 @@
  #
 
  menuconfig NVM
-	bool "Open-Channel SSD target support"
+	bool "Open-Channel SSD target support (DEPRECATED)"
  	depends on BLOCK
  	help
  	  Say Y here to get to enable Open-channel SSDs.
@@ -15,6 +15,8 @@ menuconfig NVM
  	  If you say N, all options in this submenu will be skipped and disabled
  	  only do this if you know what you are doing.
 
+	  This code is deprecated and will be removed in Linux 5.15.
+
  if NVM
 
  config NVM_PBLK
drivers/lightnvm/core.c +0 -0
index 28ddcaa5358b14..4394f47c81296a 100644

drivers/lightnvm/core.c int nvm_register(struct nvm_dev *dev) · line 1181

Quoted 8 lines
drivers/lightnvm/core.c +2 -0
@@ -1174,6 +1174,8 @@ int nvm_register(struct nvm_dev *dev)
  {
  	int ret, exp_pool_size;
 
+	pr_warn_once("lightnvm support is deprecated and will be removed in Linux 5.15.\n");
+
  	if (!dev->q || !dev->ops) {
  		kref_put(&dev->ref, nvm_free);
  		return -EINVAL;

Thanks, Christoph.

I'll send it to Jens with today's lightnvm PR.

_______________________________________________
Linux-nvme mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-nvme

#2 lore raw
Quoted 51 lines · Matias Bjørling
Quoted 40 lines · Christoph Hellwig

Lightnvm was an innovative idea to expose more low-level control over SSDs. But it failed to get properly standardized and remains a non-standarized extension to NVMe that requires vendor specific quirks for a few now mostly obsolete SSD devices.  The standardized ZNS command set for NVMe has take over a lot of the approaches and allows for fully standardized operation.

Remove the Linux code to support open channel SSDs as the few production deployments of the above mentioned SSDs are using userspace driver stacks instead of the fairly limited Linux support.

---
  drivers/lightnvm/Kconfig | 4 +++-
  drivers/lightnvm/core.c  | 2 ++

  2 files changed, 5 insertions(+), 1 deletion(-)
drivers/lightnvm/Kconfig +0 -0
index 4c2ce210c1237d..04caa0f2d445c7 100644
@@ -4,7 +4,7 @@
   #

    menuconfig NVM
-    bool "Open-Channel SSD target support"
+    bool "Open-Channel SSD target support (DEPRECATED)" depends on BLOCK
      help
        Say Y here to get to enable Open-channel SSDs.

drivers/lightnvm/Kconfig +0 -0
@@ -15,6 +15,8 @@ menuconfig NVM

        If you say N, all options in this submenu will be skipped and disabled only do this if you know what you are doing.
  +      This code is deprecated and will be removed in Linux 5.15. +
  if NVM
    config NVM_PBLK

drivers/lightnvm/core.c +0 -0
index 28ddcaa5358b14..4394f47c81296a 100644

drivers/lightnvm/core.c int nvm_register(struct nvm_dev *dev) · line 1180

Quoted 7 lines
drivers/lightnvm/core.c +1 -0
@@ -1174,6 +1174,8 @@ int nvm_register(struct nvm_dev *dev)
   {
       int ret, exp_pool_size;
   +    pr_warn_once("lightnvm support is deprecated and will be removed in Linux 5.15.\n");
+
       if (!dev->q || !dev->ops) {
           kref_put(&dev->ref, nvm_free);
           return -EINVAL;

Thanks, Christoph.

Quoted 1 line

I'll send it to Jens with today's lightnvm PR.

Javier, can I add your reviewed-by?

Thank you.

_______________________________________________
Linux-nvme mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-nvme

#3 lore raw
Quoted 52 lines · Matias Bjørling
Quoted 51 lines · Matias Bjørling
Quoted 40 lines · Christoph Hellwig

Lightnvm was an innovative idea to expose more low-level control over SSDs. But it failed to get properly standardized and remains a non-standarized extension to NVMe that requires vendor specific quirks for a few now mostly obsolete SSD devices.  The standardized ZNS command set for NVMe has take over a lot of the approaches and allows for fully standardized operation.

Remove the Linux code to support open channel SSDs as the few production deployments of the above mentioned SSDs are using userspace driver stacks instead of the fairly limited Linux support.

---
  drivers/lightnvm/Kconfig | 4 +++-
  drivers/lightnvm/core.c  | 2 ++

  2 files changed, 5 insertions(+), 1 deletion(-)
drivers/lightnvm/Kconfig +0 -0
index 4c2ce210c1237d..04caa0f2d445c7 100644
@@ -4,7 +4,7 @@
   #

    menuconfig NVM
-    bool "Open-Channel SSD target support"
+    bool "Open-Channel SSD target support (DEPRECATED)" depends on BLOCK
      help
        Say Y here to get to enable Open-channel SSDs.

drivers/lightnvm/Kconfig +0 -0
@@ -15,6 +15,8 @@ menuconfig NVM

        If you say N, all options in this submenu will be skipped and disabled only do this if you know what you are doing.
  +      This code is deprecated and will be removed in Linux 5.15. +
  if NVM
    config NVM_PBLK

drivers/lightnvm/core.c +0 -0
index 28ddcaa5358b14..4394f47c81296a 100644

drivers/lightnvm/core.c int nvm_register(struct nvm_dev *dev) · line 1180

Quoted 7 lines
drivers/lightnvm/core.c +1 -0
@@ -1174,6 +1174,8 @@ int nvm_register(struct nvm_dev *dev)
   {
       int ret, exp_pool_size;
   +    pr_warn_once("lightnvm support is deprecated and will be removed in Linux 5.15.\n");
+
       if (!dev->q || !dev->ops) {
           kref_put(&dev->ref, nvm_free);
           return -EINVAL;

Thanks, Christoph.

Quoted 4 lines
Quoted 1 line

I'll send it to Jens with today's lightnvm PR.

Javier, can I add your reviewed-by?

Yes, please.

I'll crack a beer and cheer on it tonight. Good times :)

Javier

_______________________________________________
Linux-nvme mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-nvme

#4 lore raw
Quoted 55 lines · Javier González
Quoted 54 lines · Matias Bjørling
Quoted 52 lines · Matias Bjørling
Quoted 40 lines · Christoph Hellwig

Lightnvm was an innovative idea to expose more low-level control over SSDs. But it failed to get properly standardized and remains a non-standarized extension to NVMe that requires vendor specific quirks for a few now mostly obsolete SSD devices.  The standardized ZNS command set for NVMe has take over a lot of the approaches and allows for fully standardized operation.

Remove the Linux code to support open channel SSDs as the few production deployments of the above mentioned SSDs are using userspace driver stacks instead of the fairly limited Linux support.

---
  drivers/lightnvm/Kconfig | 4 +++-
  drivers/lightnvm/core.c  | 2 ++

  2 files changed, 5 insertions(+), 1 deletion(-)
drivers/lightnvm/Kconfig +0 -0
index 4c2ce210c1237d..04caa0f2d445c7 100644
@@ -4,7 +4,7 @@
   #

    menuconfig NVM
-    bool "Open-Channel SSD target support"
+    bool "Open-Channel SSD target support (DEPRECATED)" depends on BLOCK
      help
        Say Y here to get to enable Open-channel SSDs.

drivers/lightnvm/Kconfig +0 -0
@@ -15,6 +15,8 @@ menuconfig NVM

        If you say N, all options in this submenu will be skipped and disabled only do this if you know what you are doing.
  +      This code is deprecated and will be removed in Linux 5.15. +
  if NVM
    config NVM_PBLK

drivers/lightnvm/core.c +0 -0
index 28ddcaa5358b14..4394f47c81296a 100644

drivers/lightnvm/core.c int nvm_register(struct nvm_dev *dev) · line 1180

Quoted 7 lines
drivers/lightnvm/core.c +1 -0
@@ -1174,6 +1174,8 @@ int nvm_register(struct nvm_dev *dev)
   {
       int ret, exp_pool_size;
   +    pr_warn_once("lightnvm support is deprecated and will be removed in Linux 5.15.\n");
+
       if (!dev->q || !dev->ops) {
           kref_put(&dev->ref, nvm_free);
           return -EINVAL;

Thanks, Christoph.

I'll send it to Jens with today's lightnvm PR.

Quoted 8 lines
Quoted 2 lines

Javier, can I add your reviewed-by?

Yes, please.

I'll crack a beer and cheer on it tonight. Good times :)

Javier

Thank you.

#5 lore raw
Quoted 64 lines · Matias Bjørling
Quoted 62 lines · Javier González
Quoted 61 lines · Matias Bjørling
Quoted 60 lines · Matias Bjørling
Quoted 48 lines · Christoph Hellwig

Lightnvm was an innovative idea to expose more low-level control over SSDs.
But it failed to get properly standardized and remains a non-standarized
extension to NVMe that requires vendor specific quirks for a few now mostly
obsolete SSD devices. The standardized ZNS command set for NVMe has take
over a lot of the approaches and allows for fully standardized operation.

Remove the Linux code to support open channel SSDs as the few production
deployments of the above mentioned SSDs are using userspace driver stacks
instead of the fairly limited Linux support.

---
  drivers/lightnvm/Kconfig | 4 +++-
  drivers/lightnvm/core.c  | 2 ++
  2 files changed, 5 insertions(+), 1 deletion(-)
drivers/lightnvm/Kconfig +1 -1
index 4c2ce210c1237d..04caa0f2d445c7 100644
@@ -4,7 +4,7 @@
  #
    menuconfig NVM
-    bool "Open-Channel SSD target support"
+    bool "Open-Channel SSD target support (DEPRECATED)"
      depends on BLOCK
      help
        Say Y here to get to enable Open-channel SSDs.
@@ -15,6 +15,8 @@ menuconfig NVM
        If you say N, all options in this submenu will be skipped

and disabled
only do this if you know what you are doing.
+ This code is deprecated and will be removed in Linux 5.15.

drivers/lightnvm/Kconfig +1 -0
+
  if NVM
    config NVM_PBLK
drivers/lightnvm/core.c +0 -0
index 28ddcaa5358b14..4394f47c81296a 100644

drivers/lightnvm/core.c int nvm_register(struct nvm_dev *dev) · line 1181

Quoted 8 lines
drivers/lightnvm/core.c +1 -0
@@ -1174,6 +1174,8 @@ int nvm_register(struct nvm_dev *dev)
  {
      int ret, exp_pool_size;
  +    pr_warn_once("lightnvm support is deprecated and will be
 removed in Linux 5.15.\n");
+
      if (!dev->q || !dev->ops) {
          kref_put(&dev->ref, nvm_free);
          return -EINVAL;

Thanks, Christoph.

Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
Quoted 1 line

I'll send it to Jens with today's lightnvm PR.

Javier, can I add your reviewed-by?

Yes, please.

I'll crack a beer and cheer on it tonight. Good times :)

All those patches lost in time, like tears in rain..

Cheers to everyone involved!

Hans

Quoted 5 lines
Quoted 2 lines

Javier

Thank you.