Skip to contentSkip to conversation

master - dev_cache: fix close in dev_get_block_size

PATCH David Teigland 1 participant 1 message May 11, 2018

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=ccab54677c9f92cf1bd11895251799c043a57602
Commit:        ccab54677c9f92cf1bd11895251799c043a57602
Parent:        bbb8040456a07a0c9076d45a8eee5e5f7fcde0ec
Author:        David Teigland <[email protected]>
AuthorDate:    Fri May 11 13:53:19 2018 -0500
Committer:     David Teigland <[email protected]>
CommitterDate: Fri May 11 13:53:19 2018 -0500

dev_cache: fix close in dev_get_block_size

---
 lib/device/dev-io.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
lib/device/dev-io.c +1 -1
index 903c582..8028306 100644
@@ -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;
 	*block_size = (unsigned int) dev->block_size;
 out:
-	if (needs_open && !dev_close(dev))
+	if (needs_open && !dev_close_immediate(dev))
 		stack;
 
 	return r;