From 85cefd1dc0354e0814057e823ea8d81b56f5d59e Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Tue, 24 Jun 2003 19:50:48 +0000 Subject: [PATCH] /dev/null and /dev/zero does not need Giant --- sys/dev/null/null.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/null/null.c b/sys/dev/null/null.c index 75f9a90a8b3e..9ddb4fce881b 100644 --- a/sys/dev/null/null.c +++ b/sys/dev/null/null.c @@ -58,6 +58,7 @@ static struct cdevsw null_cdevsw = { .d_ioctl = null_ioctl, .d_name = "null", .d_maj = CDEV_MAJOR, + .d_flags = D_NOGIANT, }; static struct cdevsw zero_cdevsw = { @@ -67,7 +68,7 @@ static struct cdevsw zero_cdevsw = { .d_write = null_write, .d_name = "zero", .d_maj = CDEV_MAJOR, - .d_flags = D_MMAP_ANON, + .d_flags = D_MMAP_ANON | D_NOGIANT, }; static void *zbuf;