diff options
author | Cornelia Huck <cornelia.huck@de.ibm.com> | 2007-04-27 16:01:37 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2007-04-27 16:01:41 +0200 |
commit | d76123eb357a4baa653714183df286c1bb99f707 (patch) | |
tree | b7244cc14038bc337d89d7a00acd847626438ffe /include/asm-s390 | |
parent | 82b7ac058f60e0c92f9237fbaf440671f437ecdf (diff) | |
download | op-kernel-dev-d76123eb357a4baa653714183df286c1bb99f707.zip op-kernel-dev-d76123eb357a4baa653714183df286c1bb99f707.tar.gz |
[S390] cio: ccwgroup register vs. unregister.
Introduce a mutex for struct ccwgroup to prevent simuntaneous
register/unregister on the same ccwgroup device.
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'include/asm-s390')
-rw-r--r-- | include/asm-s390/ccwgroup.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asm-s390/ccwgroup.h b/include/asm-s390/ccwgroup.h index d2f9c0d..925b3dd 100644 --- a/include/asm-s390/ccwgroup.h +++ b/include/asm-s390/ccwgroup.h @@ -11,6 +11,7 @@ struct ccwgroup_device { CCWGROUP_ONLINE, } state; atomic_t onoff; + struct mutex reg_mutex; unsigned int count; /* number of attached slave devices */ struct device dev; /* master device */ struct ccw_device *cdev[0]; /* variable number, allocate as needed */ |