ide: always kill the whole request on error
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Tue, 23 Jun 2009 11:27:27 +0000 (11:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Jun 2009 06:57:16 +0000 (23:57 -0700)
commit5e955245d6cf49c5ed26c7add7392ff5a6762bf4
tree9cf243dd76059d9d218170cde5998f5a334b6a36
parent789547508f22e482825f52f813b59680408ec2c7
ide: always kill the whole request on error

* Use blk_rq_bytes() instead of obsolete ide_rq_bytes() in ide_kill_rq()
  and ide_floppy_do_request() for failed requests.
  [ bugfix part ]

* Use blk_rq_bytes() instead of obsolete ide_rq_bytes() in ide_do_devset()
  and ide_complete_drive_reset().  Then remove ide_rq_bytes().
  [ cleanup part ]

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ide/ide-devsets.c
drivers/ide/ide-eh.c
drivers/ide/ide-floppy.c
drivers/ide/ide-io.c
include/linux/ide.h