Re: [Devel] [PATCH rh7] md: add support for dm-crypted ploops

2016-10-24 Thread Andrey Ryabinin
On 10/19/2016 06:41 AM, Maxim Patlasov wrote: > Previos patch adding support for dm-crypt ploops naively suggested > that every time we build dm-crypt device, crypt_ctr() is called, and > vice versa - every time we dismantle it, crypt_dtr() is called. But > in practice, crypt_ctr/dtr is called

[Devel] [PATCH rh7] md: add support for dm-crypted ploops

2016-10-18 Thread Maxim Patlasov
Previos patch adding support for dm-crypt ploops naively suggested that every time we build dm-crypt device, crypt_ctr() is called, and vice versa - every time we dismantle it, crypt_dtr() is called. But in practice, crypt_ctr/dtr is called more than once because md->map is RCU-protected. For