1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

dev_cache: fix close in dev_get_block_size

This commit is contained in:
David Teigland 2018-05-11 13:53:19 -05:00
parent bbb8040456
commit ccab54677c

View File

@ -198,7 +198,7 @@ int dev_get_block_size(struct device *dev, unsigned int *physical_block_size, un
*physical_block_size = (unsigned int) dev->phys_block_size; *physical_block_size = (unsigned int) dev->phys_block_size;
*block_size = (unsigned int) dev->block_size; *block_size = (unsigned int) dev->block_size;
out: out:
if (needs_open && !dev_close(dev)) if (needs_open && !dev_close_immediate(dev))
stack; stack;
return r; return r;