diff options
author | Michael Holzheu <holzheu@de.ibm.com> | 2007-08-22 07:51:41 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2007-08-22 07:51:48 -0400 |
commit | 8127a1f80a002d02a30909ddf6187faedf89e00a (patch) | |
tree | 754edbf66f6d27b25ac6816e986669cca14c504a /drivers/s390/char/vmur.h | |
parent | 0a87c5cfc0bb0c1bdcc1cc9fd82e4a1711fac512 (diff) |
[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>
Diffstat (limited to 'drivers/s390/char/vmur.h')
-rw-r--r-- | drivers/s390/char/vmur.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/s390/char/vmur.h b/drivers/s390/char/vmur.h index 2b3c564e0472..fa959644735a 100644 --- a/drivers/s390/char/vmur.h +++ b/drivers/s390/char/vmur.h | |||
@@ -70,6 +70,7 @@ struct urdev { | |||
70 | size_t reclen; /* Record length for *write* CCWs */ | 70 | size_t reclen; /* Record length for *write* CCWs */ |
71 | int class; /* VM device class */ | 71 | int class; /* VM device class */ |
72 | int io_request_rc; /* return code from I/O request */ | 72 | int io_request_rc; /* return code from I/O request */ |
73 | atomic_t ref_count; /* reference counter */ | ||
73 | }; | 74 | }; |
74 | 75 | ||
75 | /* | 76 | /* |