Skip to contentSkip to conversation

raw: deprecate the raw driver

PATCH In review Christoph Hellwig 2 participants 2 messages Aug 19, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 raw: deprecate the raw driver

The raw driver has been replaced by O_DIRECT support on the block device in 2002. Deprecate it to prepare for removal in a few kernel releases.

---

Jens, I wonder if we can sneak this into 5.9 to have a longer deprecation period?

 drivers/char/raw.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/char/raw.c +5 -0
index 380bf518338ef7..ccf5bd528642da 100644
@@ -63,6 +63,11 @@ static int raw_open(struct inode *inode, struct file *filp)
 		return 0;
 	}
 
+	pr_warn_ratelimited(
+		"process %s (pid %d) is using the deprecated raw device\n"
+		"support will be removed in Linux 5.14.\n",
+		current->comm, current->pid);
+
 	mutex_lock(&raw_mutex);
 
 	/*
Signature · 1 line
2.28.0
maintainer
#1 lore raw
Quoted 8 lines · Christoph Hellwig

The raw driver has been replaced by O_DIRECT support on the block device in 2002. Deprecate it to prepare for removal in a few kernel releases.

---

Jens, I wonder if we can sneak this into 5.9 to have a longer deprecation period?

Wow, hadn't thought about this one in forever. Yeah let's see if we can get this into 5.9. I can't imagine anyone using this thing, well, ever.

Signature · 1 line
Jens Axboe