]> err.no Git - linux-2.6/commit
[S390] vmur: add "top of queue" sanity check for reader open
authorMichael Holzheu <holzheu@de.ibm.com>
Fri, 10 Aug 2007 12:32:33 +0000 (14:32 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 10 Aug 2007 12:32:38 +0000 (14:32 +0200)
commit4eac34529bce2b4cca9be90a6903c965baa8193c
tree2a0d04aa4ed5b9c2d9a75158c6c0715456443e5f
parentf2405598e0678e9c93dd780f2a12fc562ece3d13
[S390] vmur: add "top of queue" sanity check for reader open

If the z/VM reader is already open, it can happen that after opening the
Linux reader device, not the topmost file is processed. According the
semantics of the Linux z/VM unit record device driver, always the topmost
file has to be processed. With this fix an error is returned if that is
not the case.

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