Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29330
b: refs/heads/master
c: 083958d
h: refs/heads/master
v: v3
  • Loading branch information
Albert Lee authored and Jeff Garzik committed Oct 9, 2005
1 parent fa8dd80 commit 20f5233
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 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: 7282aa4b49d08254ff1dcefdf3a2fb01b02ebbe2
refs/heads/master: 083958d313f886dc7d00522f2972f90f55c40041
20 changes: 10 additions & 10 deletions trunk/drivers/scsi/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2760,15 +2760,15 @@ static void ata_pio_sector(struct ata_queued_cmd *qc)
page = nth_page(page, (offset >> PAGE_SHIFT));
offset %= PAGE_SIZE;

local_irq_save(flags);
buf = kmap_atomic(page, KM_IRQ0) + offset;

DPRINTK("data %s\n", qc->tf.flags & ATA_TFLAG_WRITE ? "write" : "read");

local_irq_save(flags);
buf = kmap_atomic(page, KM_IRQ0);

/* do the actual data transfer */
ata_data_xfer(ap, buf, ATA_SECT_SIZE, do_write);
ata_data_xfer(ap, buf + offset, ATA_SECT_SIZE, do_write);

kunmap_atomic(buf - offset, KM_IRQ0);
kunmap_atomic(buf, KM_IRQ0);
local_irq_restore(flags);

qc->cursect++;
Expand Down Expand Up @@ -2952,15 +2952,15 @@ static void __atapi_pio_bytes(struct ata_queued_cmd *qc, unsigned int bytes)
/* don't cross page boundaries */
count = min(count, (unsigned int)PAGE_SIZE - offset);

local_irq_save(flags);
buf = kmap_atomic(page, KM_IRQ0) + offset;

DPRINTK("data %s\n", qc->tf.flags & ATA_TFLAG_WRITE ? "write" : "read");

local_irq_save(flags);
buf = kmap_atomic(page, KM_IRQ0);

/* do the actual data transfer */
ata_data_xfer(ap, buf, count, do_write);
ata_data_xfer(ap, buf + offset, count, do_write);

kunmap_atomic(buf - offset, KM_IRQ0);
kunmap_atomic(buf, KM_IRQ0);
local_irq_restore(flags);

bytes -= count;
Expand Down

0 comments on commit 20f5233

Please sign in to comment.