21.11.2018 20:30, Vladimir Sementsov-Ogievskiy wrote: > Hi Daniel! > > After moving compression to threads in Qcow2 it's an obvious next step to > "threadyfy" encryption in Qcow2 too. > > But it turned out to be not as simple as I assumed. If I call > qcrypto_block_encrypt > in parallel threads with the same first argument (block), it just produce > wrong > things (pattern verification fails in iotests).. > > So, can you advise the way to parallelize encryption/decryption? >
Hmm, just creating QCryptoBlock per each thread helped. Is it correct thing to do? -- Best regards, Vladimir