4ecfb5 cryptsetup: call crypt_load() for LUKS only once

1 file Authored by Milan Broz 4 years ago, Committed by Packit Service 4 years ago,
    cryptsetup: call crypt_load() for LUKS only once
    
    The crypt_load() for LUKS2 can read a quite big area of disk
    (metadata area size is configurable and can increase up to megabytes).
    
    This initialization is not needed to be repeated, just use the existing context.
    
    (This patch is also required for the following change.)
    
    (cherry picked from commit ea9a9d49e4af31c49e5c216e7e5e2f533e727579)
    
    Related: #1719153
    
    patch_name: 0205-cryptsetup-call-crypt_load-for-LUKS-only-once.patch
    present_in_specfile: true
    location_in_specfile: 205
    squash_commits: true
    
        
file modified
+12 -16