Use refcounting for sysfs devices
authorHannes Reinecke <hare@suse.de>
Wed, 25 May 2011 12:40:42 +0000 (14:40 +0200)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Wed, 25 May 2011 18:27:17 +0000 (20:27 +0200)
commitfded849ba2900f6a5700836dc0505ad1f6d79124
tree7ce2c54430a1e9f4db2fa87ce0b18d276451539f
parenta7f4099fd8a2e1220103e6b211240c521521942d
Use refcounting for sysfs devices

As we're caching sysfs devices we need to introduce some sort
of refcounting here. Otherwise the device might be removed from
other threads while we're still accessing it.

References: bnc#642846

Signed-off-by: Hannes Reinecke <hare@suse.de>
libmultipath/sysfs.c