diff options
author | Michael Holzheu <holzheu@de.ibm.com> | 2007-08-10 14:32:32 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2007-08-10 14:32:37 +0200 |
commit | f2405598e0678e9c93dd780f2a12fc562ece3d13 (patch) | |
tree | 436b83be63f88e567e6769b8cdec37bcdce020f2 /drivers/s390/char/vmur.h | |
parent | [S390] vmur: use DECLARE_COMPLETION_ONSTACK to keep lockdep happy (diff) | |
download | linux-f2405598e0678e9c93dd780f2a12fc562ece3d13.tar.xz linux-f2405598e0678e9c93dd780f2a12fc562ece3d13.zip |
[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>
Diffstat (limited to 'drivers/s390/char/vmur.h')
-rw-r--r-- | drivers/s390/char/vmur.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/s390/char/vmur.h b/drivers/s390/char/vmur.h index 16d0a4e38e40..522a9dfaa275 100644 --- a/drivers/s390/char/vmur.h +++ b/drivers/s390/char/vmur.h @@ -50,7 +50,9 @@ struct file_control_block { char rest[200]; } __attribute__ ((packed)); -#define FLG_CP_DUMP 0x10 +#define FLG_SYSTEM_HOLD 0x04 +#define FLG_CP_DUMP 0x10 +#define FLG_USER_HOLD 0x20 /* * A struct urdev is created for each ur device that is made available |