]> git.baikalelectronics.ru Git - kernel.git/commit
[S390] vmur: fix reference counting for vmur device structure
authorMichael Holzheu <holzheu@de.ibm.com>
Wed, 22 Aug 2007 11:51:41 +0000 (13:51 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 22 Aug 2007 11:51:48 +0000 (13:51 +0200)
commit7cdca8314be9aecad32ce243504f91f3be0cbd3e
tree754edbf66f6d27b25ac6816e986669cca14c504a
parent1a7a2b875c7ddd2137b70056d3a62d778ffdf999
[S390] vmur: fix reference counting for vmur device structure

When a vmur device is removed due to a detach of the device, currently the
ur device structure is freed. Unfortunately it can happen, that there is
still a user of the device structure, when the character device is open
during the detach process. To fix this, reference counting for the vmur
structure is introduced.
In addition to that, the online, offline, probe and remove functions are
serialized now using a global mutex.

Signed-off-by: Michael Holzheu <holzheu@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
drivers/s390/char/vmur.c
drivers/s390/char/vmur.h