diff options
| author | Jan Höppner <hoeppner@linux.ibm.com> | 2025-10-16 09:47:14 +0200 |
|---|---|---|
| committer | Heiko Carstens <hca@linux.ibm.com> | 2025-10-21 10:25:54 +0200 |
| commit | 83cff1b1245fcabe76889520c8a92158e4f25f7b (patch) | |
| tree | acc19ae854e6a1ca2070d33d343e8652eefcae74 /drivers/s390 | |
| parent | a984d712773d6573e4b0a05c9e4a77623d8c7dd7 (diff) | |
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 <hoeppner@linux.ibm.com>
Reviewed-by: Jens Remus <jremus@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'drivers/s390')
| -rw-r--r-- | drivers/s390/char/tape_std.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/s390/char/tape_std.c b/drivers/s390/char/tape_std.c index 29e40ad6fd19..e46ffc46f323 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; |
