linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* bug in use-ide_pio_bytes patch?
@ 2009-03-23  6:28 Tejun Heo
  2009-03-23 10:27 ` Bartlomiej Zolnierkiewicz
  0 siblings, 1 reply; 6+ messages in thread
From: Tejun Heo @ 2009-03-23  6:28 UTC (permalink / raw)
  To: Bartlomiej Zolnierkiewicz, IDE/ATA development list

Hello, Bartlomiej.

I've been looking at the pata-2.6 patches and use-ide_pio_bytes patch
contains the following snippet.

  void ide_init_pc(struct ide_atapi_pc *pc)
  {
	 memset(pc, 0, sizeof(*pc));
 @@ -351,6 +308,9 @@ static ide_startstop_t ide_pc_intr(ide_d
			 pc->xferred = pc->req_xfer;
			 if (drive->pc_update_buffers)
				 drive->pc_update_buffers(drive, pc);
 +
 +			if (drive->media == ide_floppy)
 +				ide_complete_rq(drive, 0, blk_rq_bytes(rq));
		 }
		 debug_log("%s: DMA finished\n", drive->name);
	 }

It completes ide_floppy requests in the DMA handling block; however,
those requests are gonna be completed again later in the regular
completion path again.  I think the above part can be simply dropped?

Thanks.

-- 
tejun

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-03-26 21:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-23  6:28 bug in use-ide_pio_bytes patch? Tejun Heo
2009-03-23 10:27 ` Bartlomiej Zolnierkiewicz
2009-03-23 10:44   ` Tejun Heo
2009-03-23 11:43     ` Bartlomiej Zolnierkiewicz
2009-03-25  9:15       ` Borislav Petkov
2009-03-26 20:19         ` Bartlomiej Zolnierkiewicz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).