From: Jeff Garzik Date: Fri, 16 Sep 2005 10:01:48 +0000 (-0400) Subject: [libata] fix PIO completion race X-Git-Tag: v2.6.14-rc2~5^2~65^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fb6ec287a05d7a71ec086d8bc9a452d5e16ff1a;p=pandora-kernel.git [libata] fix PIO completion race Make sure we that completion is the final action we take; prior to this change, another CPU may have changed ap->pio_task_state before we tested it a final time. Spotted by, and original patch by Albert Lee @ IBM. Also includes a minor optimization: eliminate a ton of unnecessary queue_work() calls, simply by jumping to the beginning of the FSM function ata_pio_task(). --- Reading git-diff-tree failed