Commit de7c61d
Tobias Huschle
s390/dasd: fix no record found for raw_track_access
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2161269
Upstream status: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Tested: by IBM
Build-Info: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=50102305
Conflicts: N
commit 590ce6d
Author: Stefan Haberland <sth@linux.ibm.com>
Date: Wed Nov 23 17:07:18 2022 +0100
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: e4dbb0f ("[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>
Signed-off-by: Tobias Huschle <thuschle@redhat.com>1 parent a70d62a commit de7c61d
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4725 | 4725 | | |
4726 | 4726 | | |
4727 | 4727 | | |
4728 | | - | |
4729 | 4728 | | |
4730 | 4729 | | |
4731 | 4730 | | |
| |||
4759 | 4758 | | |
4760 | 4759 | | |
4761 | 4760 | | |
4762 | | - | |
4763 | 4761 | | |
4764 | 4762 | | |
4765 | 4763 | | |
| |||
4803 | 4801 | | |
4804 | 4802 | | |
4805 | 4803 | | |
4806 | | - | |
| 4804 | + | |
4807 | 4805 | | |
4808 | 4806 | | |
4809 | 4807 | | |
4810 | 4808 | | |
4811 | 4809 | | |
4812 | | - | |
| 4810 | + | |
4813 | 4811 | | |
4814 | 4812 | | |
4815 | 4813 | | |
| |||
0 commit comments