]> 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)
commit97c7d1070c1c0294e0980c6a763cf196d9b45b14
treeb0f46ae605dac645a45e9d911a9411cdc1128f9f
parentf7a5c951538e1b3d3519c939dc09e1d6063e1374
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