linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] raw: deprecate the raw driver
@ 2020-08-19  7:35 Christoph Hellwig
  2020-08-19 12:53 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: Christoph Hellwig @ 2020-08-19  7:35 UTC (permalink / raw)
  To: axboe; +Cc: linux-block, linux-kernel

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.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---

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(+)

diff --git a/drivers/char/raw.c b/drivers/char/raw.c
index 380bf518338ef7..ccf5bd528642da 100644
--- a/drivers/char/raw.c
+++ b/drivers/char/raw.c
@@ -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);
 
 	/*
-- 
2.28.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] raw: deprecate the raw driver
  2020-08-19  7:35 [PATCH] raw: deprecate the raw driver Christoph Hellwig
@ 2020-08-19 12:53 ` Jens Axboe
  0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2020-08-19 12:53 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: linux-block, linux-kernel

On 8/19/20 12:35 AM, Christoph Hellwig wrote:
> 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.
> 
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> ---
> 
> 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.

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-08-19 12:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-19  7:35 [PATCH] raw: deprecate the raw driver Christoph Hellwig
2020-08-19 12:53 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).