From: Jan Höppner Date: Thu, 16 Oct 2025 07:47:14 +0000 (+0200) Subject: s390/tape: Remove extra CCW allocation for error recovery X-Git-Tag: v6.19-rc1~206^2~35^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83cff1b1245fcabe76889520c8a92158e4f25f7b;p=thirdparty%2Flinux.git s390/tape: Remove extra CCW allocation for error recovery 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 Reviewed-by: Jens Remus Signed-off-by: Heiko Carstens --- diff --git a/drivers/s390/char/tape_std.c b/drivers/s390/char/tape_std.c index 29e40ad6fd19e..e46ffc46f3236 100644 --- a/drivers/s390/char/tape_std.c +++ b/drivers/s390/char/tape_std.c @@ -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;