Re: [PATCH] mm/vmscan.c: drop all inode/dentry cache from LRU
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Sahitya Tummala <stummala@xxxxxxxxxxxxxx>
- Subject: Re: [PATCH] mm/vmscan.c: drop all inode/dentry cache from LRU
- From: "Theodore Ts'o" <tytso@xxxxxxx>
- Date: Fri, 24 May 2019 12:52:13 -0400
- In-reply-to: <1558685161-860-1-git-send-email-stummala@codeaurora.org>
- Mail-followup-to: Theodore Ts'o <tytso@xxxxxxx>, Sahitya Tummala <stummala@xxxxxxxxxxxxxx>, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, Kirill Tkhai <ktkhai@xxxxxxxxxxxxx>, Michal Hocko <mhocko@xxxxxxxx>, Johannes Weiner <hannes@xxxxxxxxxxx>, Vladimir Davydov <vdavydov.dev@xxxxxxxxx>, Yafang Shao <laoar.shao@xxxxxxxxx>, Roman Gushchin <guro@xxxxxx>, Mel Gorman <mgorman@xxxxxxxxxxxxxxxxxxx>, linux-mm@xxxxxxxxx, Jaegeuk Kim <jaegeuk@xxxxxxxxxx>, Eric Biggers <ebiggers@xxxxxxxxxx>, linux-fscrypt@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx
- References: <1558685161-860-1-git-send-email-stummala@codeaurora.org>
- User-agent: Mutt/1.10.1 (2018-07-13)
On Fri, May 24, 2019 at 01:36:01PM +0530, Sahitya Tummala wrote:
> This is important for the scenario where FBE (file based encryption)
> is enabled. With FBE, the encryption context needed to en/decrypt a file
> will be stored in inode and any inode that is left in the cache after
> drop_caches is done will be a problem. For ex, in Android, drop_caches
> will be used when switching work profiles.
>
> Signed-off-by: Sahitya Tummala <stummala@xxxxxxxxxxxxxx>
Instead of making a change to vmscan.c, it's probably better to
migrate to the new fscrypt key-management framework, which solves this
problem with an explicit FS_IOC_REMOVE_ENCRYPTION_KEY ioctl. This
allows the system to remove all inodes that were made available via a
single key without having nuking all other inodes --- this would make
it much faster after a user logs out of ChromeOS, for example:
See:
https://patchwork.kernel.org/patch/10952019/
- Ted
[Index of Archives]
[linux Cryptography]
[Asterisk App Development]
[PJ SIP]
[Gnu Gatekeeper]
[IETF Sipping]
[Info Cyrus]
[ALSA User]
[Fedora Linux Users]
[Linux SCTP]
[DCCP]
[Gimp]
[Yosemite News]
[Deep Creek Hot Springs]
[Yosemite Campsites]
[ISDN Cause Codes]