-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The ltotape driver uses a thread-shared ltotape_scsi_io_type structure that contains fields involved in SCSI operations: cdb, cdb_length, data, data_length, data_direction, actual_data_length, sensedata, sense_length, timeout_ms. As a result the driver is not re-entrant, while libltfs expects it to be. We fix that situation by adding a wrapper layer that copies the ltotape_scsi_io_type structure to the stack when doing SCSI operations, so that the offending fields are not shared among threads anymore.
- Loading branch information
Showing
6 changed files
with
2,028 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.