Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137655
b: refs/heads/master
c: bfdb0b3
h: refs/heads/master
i:
  137653: 5ff101d
  137651: 3383f63
  137647: f43a73c
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Mar 27, 2009
1 parent 915d734 commit 9af1508
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cc495557dfaeca552595cda8cd4427d67aa0142e
refs/heads/master: bfdb0b3beb0618dd03e7aa49e2fd3ac360aef370
9 changes: 0 additions & 9 deletions trunk/drivers/ide/ide-tape.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,6 @@ typedef struct ide_tape_obj {
/* Wasted space in each stage */
int excess_bh_size;

/* protects the ide-tape queue */
spinlock_t lock;

/* Measures average tape speed */
unsigned long avg_time;
int avg_size;
Expand Down Expand Up @@ -481,7 +478,6 @@ static int idetape_end_request(ide_drive_t *drive, int uptodate, int nr_sects)
{
struct request *rq = drive->hwif->rq;
idetape_tape_t *tape = drive->driver_data;
unsigned long flags;
int error;

debug_log(DBG_PROCS, "Enter %s\n", __func__);
Expand All @@ -500,11 +496,8 @@ static int idetape_end_request(ide_drive_t *drive, int uptodate, int nr_sects)
return 0;
}

spin_lock_irqsave(&tape->lock, flags);

ide_complete_rq(drive, 0);

spin_unlock_irqrestore(&tape->lock, flags);
return 0;
}

Expand Down Expand Up @@ -2192,8 +2185,6 @@ static void idetape_setup(ide_drive_t *drive, idetape_tape_t *tape, int minor)
drive->pc_update_buffers = idetape_update_buffers;
drive->pc_io_buffers = ide_tape_io_buffers;

spin_lock_init(&tape->lock);

drive->dev_flags |= IDE_DFLAG_DSC_OVERLAP;

if (drive->hwif->host_flags & IDE_HFLAG_NO_DSC) {
Expand Down

0 comments on commit 9af1508

Please sign in to comment.