Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137661
b: refs/heads/master
c: b109f52
h: refs/heads/master
i:
  137659: 5b3c9a4
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Mar 27, 2009
1 parent d6ff4b0 commit 1319437
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 03a2faaea8f44edfe583ddf1240948019becfbe4
refs/heads/master: b109f526cabcd098131e770fd6232282bce147b4
6 changes: 3 additions & 3 deletions trunk/drivers/ide/ide-taskfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ static void ide_pio_datablock(ide_drive_t *drive, struct request *rq,
ide_task_t *task = &drive->hwif->task;
u8 saved_io_32bit = drive->io_32bit;

if (rq->bio) /* fs request */
if (blk_fs_request(rq))
rq->errors = 0;

if (task->tf_flags & IDE_TFLAG_IO_16BIT)
Expand All @@ -292,7 +292,7 @@ static void ide_pio_datablock(ide_drive_t *drive, struct request *rq,
static ide_startstop_t task_error(ide_drive_t *drive, struct request *rq,
const char *s, u8 stat)
{
if (rq->bio) {
if (blk_fs_request(rq)) {
ide_hwif_t *hwif = drive->hwif;
ide_task_t *task = &hwif->task;
int sectors = hwif->nsect - hwif->nleft;
Expand Down Expand Up @@ -323,7 +323,7 @@ static ide_startstop_t task_error(ide_drive_t *drive, struct request *rq,

void task_end_request(ide_drive_t *drive, struct request *rq, u8 stat)
{
if (rq->cmd_type == REQ_TYPE_ATA_TASKFILE) {
if (blk_fs_request(rq) == 0) {
ide_task_t *task = rq->special;
u8 err = ide_read_error(drive);

Expand Down

0 comments on commit 1319437

Please sign in to comment.