lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 16 Jan 2009 18:30:12 -0800
From:	Mike Waychison <mikew@...gle.com>
To:	linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org
Subject: [PATCH v1 7/8] Make drop_caches flush pending dput()s and iput()s

When doing echo 3 > /proc/sys/vm/drop_caches, we wish to free up as much inode
and dentry slab as possible.  This path is updated to flush any pending iputs
and dputs once the shrinkers are called.

Signed-off-by: Mike Waychison <mikew@...gle.com>
---

 fs/drop_caches.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/fs/drop_caches.c b/fs/drop_caches.c
index 3e5637f..1e47470 100644
--- a/fs/drop_caches.c
+++ b/fs/drop_caches.c
@@ -60,6 +60,7 @@ static void drop_slab(void)
 	do {
 		nr_objects = shrink_slab(1000, GFP_KERNEL, 1000);
 	} while (nr_objects > 10);
+	dput_drain_all();
 }
 
 int drop_caches_sysctl_handler(ctl_table *table, int write,

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ