Commit c4823983 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe

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.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 3310eeba
...@@ -63,6 +63,11 @@ static int raw_open(struct inode *inode, struct file *filp) ...@@ -63,6 +63,11 @@ static int raw_open(struct inode *inode, struct file *filp)
return 0; 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); mutex_lock(&raw_mutex);
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment