• Andrew Morton's avatar
    [PATCH] loop setup calling bd_set_size too soon · 840d5d40
    Andrew Morton authored
    From: Chris Mason <mason@suse.com>
    
    I think Andrew and I managed to mismerge the loop setup race fix. 
    loop_set_fd is using get_capacity() to read the size of the disk and
    sending that to bd_set_size.
    
    But, it is doing this before calling set_capacity, so the size being used
    is wrong.  This should clean things up.
    840d5d40
loop.c 28.2 KB