]> git.karo-electronics.de Git - karo-tx-linux.git/commit
libsas: fix NCQ mixing with non-NCQ
authorDavid Milburn <dmilburn@redhat.com>
Fri, 3 Sep 2010 22:13:03 +0000 (17:13 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 21 Mar 2011 19:43:37 +0000 (12:43 -0700)
commitc960e1e3eafdf8b09b376dd15496c6447eee245d
treedd62a0b452fa922d4218b40a5df239a0220855d0
parentf1c532c57f510a26886d8ee8650cfd1926e47b36
libsas: fix NCQ mixing with non-NCQ

commit f0ad30d3d2dc924decc0e10b1ff6dc32525a5d99 upstream.

Some cards (like mvsas) have issue troubles if non-NCQ commands are
mixed with NCQ ones.  Fix this by using the libata default NCQ check
routine which waits until all NCQ commands are complete before issuing
a non-NCQ one.  The impact to cards (like aic94xx) which don't need
this logic should be minimal

Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/libsas/sas_ata.c