projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3310eeb
)
raw: deprecate the raw driver
author
Christoph Hellwig
<hch@lst.de>
Wed, 19 Aug 2020 07:35:33 +0000
(09:35 +0200)
committer
Jens Axboe
<axboe@kernel.dk>
Tue, 1 Sep 2020 22:49:26 +0000
(16:49 -0600)
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>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/char/raw.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/char/raw.c
b/drivers/char/raw.c
index 380bf518338ef7d903264d940bf9131cb006448e..ccf5bd528642da64a860f0b9660c80a472371926 100644
(file)
--- 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);
/*