All of lore.kernel.org
 help / color / mirror / Atom feed
* eCryptfs ablkcipher patch
@ 2013-01-06 15:36 Zeev Zilberman
  2013-01-10 18:36 ` Tyler Hicks
  0 siblings, 1 reply; 4+ messages in thread
From: Zeev Zilberman @ 2013-01-06 15:36 UTC (permalink / raw)
  To: ecryptfs@vger.kernel.org

Hello,

I've seen earlier discussions about ecryptfs ablkcipher patch, but I see
it was not merged.
Are you planning to apply this patch in the future, or did you decide to
drop it?

I tried to apply the patch locally and saw the following issues:

1. I've encountered a problem with ecryptfs_encrypt_extent_done that is
calling functions
that can sleep (kmap/kunmap). It fails with ablkcipher crypto drivers that
invoke the
callback from interrupt handler bh (tasklet).
Moving the write part to a work queue (using queue_work) seems to solve it.


2. I saw that ecryptfs was reverted from writeback to writethrough cache
mode.
This seems to be problematic in regard to performance while using async
interfaces.
The original change to writepage (that uses ecryptfs_encrypt_page_async)
allowed
submitting async crypto operations and continuing without waiting for the
result.
write_end uses ecryptfs_encrypt_page (and needs its return value), so
we'll have to wait
for encryption (and write) to complete before continuing to the next
operation.
Are you planning to return ecryptfs cache to writeback mode?


Thank you,
Zeev.


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

end of thread, other threads:[~2013-01-20 13:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-06 15:36 eCryptfs ablkcipher patch Zeev Zilberman
2013-01-10 18:36 ` Tyler Hicks
2013-01-20 12:00   ` Zeev Zilberman
2013-01-20 13:26   ` Zeev Zilberman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.