From: Bartlomiej Zolnierkiewicz Date: Mon, 26 Mar 2007 21:03:19 +0000 (+0200) Subject: ide: fix locking for manual DMA enable/disable ("hdparm -d") X-Git-Tag: v2.6.21-rc6~120^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8799620400b0b1a4729d8be828b5bfb3d2a8db1a;p=pandora-kernel.git ide: fix locking for manual DMA enable/disable ("hdparm -d") Since hwif->ide_dma_check and hwif->ide_dma_on never queue any commands (ide_config_drive_speed() sets transfer mode using polling and has no error recovery) we are safe with setting hwgroup->busy for the time while DMA setting for a drive is changed (so it won't race against I/O commands in fly). I audited briefly all ->ide_dma_check/->ide_dma_on/->tuneproc/->speedproc implementations and they all look OK wrt to this change. This patch finally allowed me to close kernel bugzilla bug #8169 (once again thanks to Patrick Horn for reporting the issue & testing patches). Cc: Sergei Shtylyov Cc: Alan Cox Signed-off-by: Bartlomiej Zolnierkiewicz --- Reading git-diff-tree failed