IDE: Report errors during drive reset back to user space
authorElias Oltmanns <eo@nebensachen.de>
Wed, 16 Jul 2008 18:33:48 +0000 (20:33 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Wed, 16 Jul 2008 18:33:48 +0000 (20:33 +0200)
commit64a8f00ff19508b3962c8a932375dbae88bee4d6
tree6ec1de97fa6524987f133eee38e30af5e545aeb9
parentbb7ee9b1ec15358af870a81b0c6a03af29417f99
IDE: Report errors during drive reset back to user space

Make sure that each error condition during the execution of an
HDIO_DRIVE_RESET ioctl is actually reported to the calling process.
Also, unify the exit path of reset_pollfunc() when returning ide_stopped
since the need of ->port_ops->reset_poll() to be treated specially has
vanished (way back, it seems).

Signed-off-by: Elias Oltmanns <eo@nebensachen.de>
Cc: "Alan Cox" <alan@lxorguk.ukuu.org.uk>
Cc: "Randy Dunlap" <randy.dunlap@oracle.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Documentation/ioctl/hdio.txt
drivers/ide/ide-iops.c
drivers/ide/ide.c
drivers/ide/pci/siimage.c