linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ecryptfs_privileged_open(): when kthread-ecryptfs is required ?
@ 2014-05-23 14:24 Yann Droneaud
  2014-05-26 13:53 ` Tyler Hicks
  0 siblings, 1 reply; 2+ messages in thread
From: Yann Droneaud @ 2014-05-23 14:24 UTC (permalink / raw)
  To: ecryptfs, linux-fsdevel; +Cc: ydroneaud

Hi,

While trying to investigate why using ecryptfs is painfully sluggish,
I've find a piece of code that, I believed at first, wouldn't scale.

After adding some printk() there, I've found that it's not at all 
called in my use case.
So I wonder: what's making  ecryptfs_privileged_open()[1] submit work 
to ecryptfs-kthread thread running ecryptfs_threadfn()[2] ?

[1]
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/fs/ecryptfs/kthread.c#n155

[2]
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/fs/ecryptfs/kthread.c#n56

BTW, I have a patch that remove this kernel thread as I think
credentials can be given to dentry_open(), so instead of running an
helper kthread, some privileged credentials can be given to
dentry_open() in the case ecryptfs_privileged_open() really need to 
open a file read/write. But as I'm not able to verify it's working as 
expected, I'm holding such trival patch.

Regards.

-- 
Yann Droneaud
OPTEYA

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-05-26 13:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-23 14:24 ecryptfs_privileged_open(): when kthread-ecryptfs is required ? Yann Droneaud
2014-05-26 13:53 ` Tyler Hicks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).