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)
commit9d2be0c1d461520578a7634f09527515f51e2267
treeb0f46ae605dac645a45e9d911a9411cdc1128f9f
parentbbc7f7ea18fca796cb276a2981a970cd2384dfa7
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