linux/drivers/s390
Stefan Haberland 590ce6d96d s390/dasd: fix no record found for raw_track_access
For DASD devices in raw_track_access mode only full track images are
read and written.
For this purpose it is not necessary to do search operation in the
locate record extended function. The documentation even states that
this might fail if the searched record is not found on a track.

Currently the driver sets a value of 1 in the search field for the first
record after record zero. This is the default for disks not in
raw_track_access mode but record 1 might be missing on a completely
empty track.

There has not been any problem with this on IBM storage servers but it
might lead to errors with DASD devices on other vendors storage servers.

Fix this by setting the search field to 0. Record zero is always available
even on a completely empty track.

Fixes: e4dbb0f2b5 ("[S390] dasd: Add support for raw ECKD access.")
Signed-off-by: Stefan Haberland <sth@linux.ibm.com>
Reviewed-by: Jan Hoeppner <hoeppner@linux.ibm.com>
Link: https://lore.kernel.org/r/20221123160719.3002694-4-sth@linux.ibm.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-11-23 10:37:37 -07:00
..
block s390/dasd: fix no record found for raw_track_access 2022-11-23 10:37:37 -07:00
char s390 updates for the 6.1 merge window 2022-10-09 13:51:40 -07:00
cio s390: move from strlcpy with unused retval to strscpy 2022-08-30 22:00:33 +02:00
crypto s390/vfio-ap: bypass unnecessary processing of AP resources 2022-09-21 22:33:16 +02:00
net s390 updates for the 6.1 merge window 2022-10-09 13:51:40 -07:00
scsi s390: move from strlcpy with unused retval to strscpy 2022-08-30 22:00:33 +02:00
virtio virtio: Revert "virtio: find_vqs() add arg sizes" 2022-08-16 01:40:24 -04:00
Makefile s390: remove pointless drivers-y in drivers/s390/Makefile 2019-09-16 13:21:51 +02:00