summaryrefslogtreecommitdiff
path: root/drivers/ide/ide-atapi.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2009-04-19 03:46:02 +0400
committerTejun Heo <tj@kernel.org>2009-04-19 03:46:02 +0400
commitea7066afcd590e4663e6dc010f93704164050f48 (patch)
tree7668e57499a7a6d3ebecf89b1a8dec1c801827ed /drivers/ide/ide-atapi.c
parentfc38b521dcffcb07447cd98fedc56f495c10b90d (diff)
downloadlinux-ea7066afcd590e4663e6dc010f93704164050f48.tar.xz
ide-tape,floppy: fix failed command completion after request sense
Impact: fix infinite retry loop After a command failed, ide-tape and floppy inserts REQUEST_SENSE in front of the failed command and according to the result, sets pc->retries, flags and errors. After REQUEST_SENSE is complete, the failed command is again at the front of the queue and if the verdict was to terminate the request, the issue functions tries to complete it directly by calling drive->pc_callback() and returning ide_stopped. However, drive->pc_callback() doesn't complete a request. It only prepares for completion of the request. As a result, this creates an infinite loop where the failed request is retried perpetually. Fix it by actually ending the request by calling ide_complete_rq(). Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ide/ide-atapi.c')
0 files changed, 0 insertions, 0 deletions