]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
s390/tape: Remove extra CCW allocation for error recovery
authorJan Höppner <hoeppner@linux.ibm.com>
Thu, 16 Oct 2025 07:47:14 +0000 (09:47 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Tue, 21 Oct 2025 08:25:54 +0000 (10:25 +0200)
The Read Opposite error recovery code required 2 extra CCWs to be
allocated in order to transform the request. As this error recovery code
for both 34xx and 3590 was removed the additional allocation isn't
required anymore. Reduce it to two.

Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
Reviewed-by: Jens Remus <jremus@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
drivers/s390/char/tape_std.c

index 29e40ad6fd19ea9a1731f4236eb3e37239627248..e46ffc46f323668ed06957def5f2baab1963acec 100644 (file)
@@ -645,11 +645,7 @@ tape_std_read_block(struct tape_device *device)
 {
        struct tape_request *request;
 
-       /*
-        * We have to alloc 4 ccws in order to be able to transform request
-        * into a read backward request in error case.
-        */
-       request = tape_alloc_request(4, 0);
+       request = tape_alloc_request(2, 0);
        if (IS_ERR(request)) {
                DBF_EXCEPTION(6, "xrbl fail");
                return request;