Linus Torvalds 6c3c3158a8 IDE: Make taskfile interface more robust wrt unexpected end-of-command
Now that we handle all the special commands using REQ_TYPE_ATA_TASKFILE
rather than using the old REQ_TYPE_ATA_CMD model, we need to also
emulate the lack of full taskfile data that comes with the old command
model (ie when commands are generated with the HDIO_DRIVE_CMD ioctl
rather than using the HDIO_DRIVE_TASK[FILE] ioctls).

In particular, this means that we should handle command completion the
more relaxed way that the old drive_cmd_intr() code did.  It allows
commands to finish early even if they don't use up all the data that we
thought we had for them.

This fixes a regression seen by Anders Eriksson where some SMART
commands sent by smartd would cause a boot-time system hang on his
machine because the IDE command handling code didn't realize that the
command had completed.

Tested-by: Anders Eriksson <aeriksson@fastmail.fm>
Cc: Jens Axboe <jens.axboe@oracle.com>
Cc: Ingo Molnar <mingo@elte.hu>
Acked-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-03-18 21:26:24 -07:00
..
2008-03-18 00:26:07 -04:00
2008-03-10 16:33:33 -07:00
2008-03-12 14:15:00 +01:00
2008-02-08 09:22:38 -08:00
2008-03-04 11:03:09 +02:00
2008-03-17 22:58:21 +11:00
2008-03-15 19:17:12 -07:00
2008-02-13 16:21:19 -08:00
2008-03-03 10:47:13 -08:00
2008-02-26 14:12:09 +09:00
2008-03-18 01:22:10 -04:00
2008-02-21 15:27:07 -08:00
2008-03-10 16:42:27 -07:00
2008-03-17 22:58:21 +11:00
2008-03-04 16:35:12 -08:00