]> err.no Git - linux-2.6/commit
[S390] vmur: Use wait queue instead of mutex to serialize open
authorFrank Munzert <munzert@de.ibm.com>
Thu, 17 Apr 2008 05:46:06 +0000 (07:46 +0200)
committerHeiko Carstens <heiko.carstens@de.ibm.com>
Thu, 17 Apr 2008 05:46:59 +0000 (07:46 +0200)
commita695f16729e00995fe72baf0e8bee4bf9c232ae0
tree2fddf1722972564e33eedbedf9010bdd9735a74d
parent92bf435f383a6193d59c687ce87ccca3529c68a1
[S390] vmur: Use wait queue instead of mutex to serialize open

If user space opens a unit record device node then vmur is leaving the kernel
with lock open_mutex still held to prevent other processes from opening the
device simultaneously. This causes lockdep to complain about a lock held when
returning to user space.
Now the mutex is replaced by a wait queue to serialize device open.

Signed-off-by: Frank Munzert <munzert@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