[S390] vmur: reject open on z/VM reader files with status HOLD
authorMichael Holzheu <holzheu@de.ibm.com>
Fri, 10 Aug 2007 12:32:32 +0000 (14:32 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 10 Aug 2007 12:32:37 +0000 (14:32 +0200)
commitf2405598e0678e9c93dd780f2a12fc562ece3d13
tree436b83be63f88e567e6769b8cdec37bcdce020f2
parent278bc68c4bfcd1af97972f5c4458acf3b9b19c37
[S390] vmur: reject open on z/VM reader files with status HOLD

If a reader file with HOLD status is at the top of the reader queue, currently
all read requests will return data of the second file in the queue. But the
semantics of vmur is that always the topmost file is read. With this fix
-EPERM is returned on open, if the topmost reader file is in HOLD status.

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