Skip to content

Commit

Permalink
[PATCH] s390: channel tape fixes
Browse files Browse the repository at this point in the history
Tape driver fixes:
 - Added deferred condition handling to tape driver core.
 - Added ability to handle busy conditions.
 - Code cleanup.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Stefan Bader authored and Linus Torvalds committed Jul 27, 2005
1 parent 6bb0e01 commit 4111796
Show file tree
Hide file tree
Showing 2 changed files with 181 additions and 125 deletions.
7 changes: 6 additions & 1 deletion drivers/s390/char/tape.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
* tape device driver for 3480/3490E/3590 tapes.
*
* S390 and zSeries version
* Copyright (C) 2001,2002 IBM Deutschland Entwicklung GmbH, IBM Corporation
* Copyright (C) 2001,2005 IBM Deutschland Entwicklung GmbH, IBM Corporation
* Author(s): Carsten Otte <cotte@de.ibm.com>
* Tuan Ngo-Anh <ngoanh@de.ibm.com>
* Martin Schwidefsky <schwidefsky@de.ibm.com>
* Stefan Bader <shbader@de.ibm.com>
*/

#ifndef _TAPE_H
Expand Down Expand Up @@ -111,6 +112,7 @@ enum tape_request_status {
TAPE_REQUEST_QUEUED, /* request is queued to be processed */
TAPE_REQUEST_IN_IO, /* request is currently in IO */
TAPE_REQUEST_DONE, /* request is completed. */
TAPE_REQUEST_CANCEL, /* request should be canceled. */
};

/* Tape CCW request */
Expand Down Expand Up @@ -237,6 +239,9 @@ struct tape_device {
/* Block dev frontend data */
struct tape_blk_data blk_data;
#endif

/* Function to start or stop the next request later. */
struct work_struct tape_dnr;
};

/* Externals from tape_core.c */
Expand Down
Loading

0 comments on commit 4111796

Please sign in to comment.