diff options
author | Hannes Reinecke <hare@suse.de> | 2013-01-30 04:26:19 -0500 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2013-07-01 11:31:26 -0400 |
commit | 5ea34a01423a27d4526f3551e8542f2f991bd4a0 (patch) | |
tree | badb135a40e6070c2a4d474e6a240457cb18b484 /arch/s390 | |
parent | 3d71ad32167c9124d5621b54c37a74ef38aa93b0 (diff) |
s390/dasd: Fail all requests when DASD_FLAG_ABORTIO is set
Whenever a DASD request encounters a timeout we might
need to abort all outstanding requests on this or
even other devices.
This is especially useful if one wants to fail all
devices on one side of a RAID10 configuration, even
though only one device exhibited an error.
To handle this I've introduced a new device flag
DASD_FLAG_ABORTIO.
This flag is evaluated in __dasd_process_request_queue()
and will invoke blk_abort_request() for all
outstanding requests with DASD_CQR_FLAGS_FAILFAST set.
This will cause any of these requests to be aborted
immediately if the blk_timeout function is activated.
The DASD_FLAG_ABORTIO is also evaluated in
__dasd_process_request_queue to abort all
new request which would have the
DASD_CQR_FLAGS_FAILFAST bit set.
The flag can be set with the new ioctls 'BIODASDABORTIO'
and removed with 'BIODASDALLOWIO'.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Stefan Weinhuber <wein@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/include/uapi/asm/dasd.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/s390/include/uapi/asm/dasd.h b/arch/s390/include/uapi/asm/dasd.h index 38eca3ba40e2..5812a3b2df9e 100644 --- a/arch/s390/include/uapi/asm/dasd.h +++ b/arch/s390/include/uapi/asm/dasd.h | |||
@@ -261,6 +261,10 @@ struct dasd_snid_ioctl_data { | |||
261 | #define BIODASDQUIESCE _IO(DASD_IOCTL_LETTER,6) | 261 | #define BIODASDQUIESCE _IO(DASD_IOCTL_LETTER,6) |
262 | /* Resume IO on device */ | 262 | /* Resume IO on device */ |
263 | #define BIODASDRESUME _IO(DASD_IOCTL_LETTER,7) | 263 | #define BIODASDRESUME _IO(DASD_IOCTL_LETTER,7) |
264 | /* Abort all I/O on a device */ | ||
265 | #define BIODASDABORTIO _IO(DASD_IOCTL_LETTER, 240) | ||
266 | /* Allow I/O on a device */ | ||
267 | #define BIODASDALLOWIO _IO(DASD_IOCTL_LETTER, 241) | ||
264 | 268 | ||
265 | 269 | ||
266 | /* retrieve API version number */ | 270 | /* retrieve API version number */ |