]> git.baikalelectronics.ru Git - kernel.git/commit
s390/dasd: Make raw I/O usable without prefix support
authorJan Höppner <hoeppner@linux.vnet.ibm.com>
Wed, 22 Mar 2017 08:57:56 +0000 (09:57 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 5 Jul 2017 05:35:29 +0000 (07:35 +0200)
commita0e5d9002da87c3151e9e1a4cac79b47777599a9
treeb0f46ae605dac645a45e9d911a9411cdc1128f9f
parente624435f2ae18709dd5f2a48d157ee59a8946e1f
s390/dasd: Make raw I/O usable without prefix support

The Prefix CCW is not mandatory and raw I/O can also be issued without
it. Check whether the Prefix CCW is supported and if not use the
combination of Define Extent and Locate Record Extended instead.

While at it, sort the variable declarations, replace the gotos with
early exits, and remove an error check at the end which is irrelevant.
Also, remove the XRC check as it is not relevant for raw I/O.

Reviewed-by: Stefan Haberland <sth@linux.vnet.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/block/dasd_eckd.c