/* 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;
{
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__);
return 0;
}
- spin_lock_irqsave(&tape->lock, flags);
-
ide_complete_rq(drive, 0);
- spin_unlock_irqrestore(&tape->lock, flags);
return 0;
}
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) {