Files
linux/drivers
Jens Axboe e013e13bf6 libata: fix bug with non-ncq devices
The recent commit 2fca5ccf97 ("libata:
switch to using block layer tagging support") to enable support for
block layer tagging in libata was broken for non-NCQ devices

The block layer initializes the tag field to -1 to detect invalid uses
of a tag, and if the libata devices does NOT support NCQ, we just used
that field to index the internal command list.  So we need to check for
-1 first and only use the tag field if it's valid.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Reported-by: Alexander Beregalov <a.beregalov@gmail.com>
Tested-by: Paul Mundt <lethal@linux-sh.org>
Tested-by: Dave Young <hidave.darkstar@gmail.com>
Tested-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-10-24 08:22:38 -07:00
..
2008-10-24 08:22:38 -07:00
2008-10-21 07:48:21 -04:00
2008-10-23 00:11:07 -04:00
2008-10-20 08:52:40 -07:00
2008-10-22 01:19:39 +02:00
2008-10-17 14:41:09 -07:00
2008-10-21 23:58:41 -04:00
2008-08-26 00:19:28 +10:00
2008-10-21 07:48:33 -04:00
2008-10-23 00:43:47 -04:00
2008-10-21 07:48:37 -04:00
2008-10-16 11:21:30 -07:00
2008-10-21 15:49:55 +11:00
2008-10-23 19:48:29 -07:00
2008-10-23 00:11:07 -04:00
2008-09-03 15:55:32 -07:00
2008-10-23 09:35:18 -07:00
2008-10-20 08:52:36 -07:00
2008-10-23 09:19:47 -07:00
2008-10-22 22:55:20 -07:00