ide: take ide_lock for prefetch disable/enable in do_special()
Take ide_lock for prefetch disable/enable in do_special(), then cleanup cmd640 and ht6560b host drivers. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
@@ -286,12 +286,7 @@ static void ht6560b_set_pio_mode(ide_drive_t *drive, const u8 pio)
|
||||
switch (pio) {
|
||||
case 8: /* set prefetch off */
|
||||
case 9: /* set prefetch on */
|
||||
/*
|
||||
* take ide_lock for drive->[no_]unmask
|
||||
*/
|
||||
spin_lock_irqsave(&ide_lock, flags);
|
||||
ht_set_prefetch(drive, pio & 1);
|
||||
spin_unlock_irqrestore(&ide_lock, flags);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user