]> err.no Git - linux-2.6/commitdiff
[PATCH] scsi: device_reprobe() can fail
authorAndrew Morton <akpm@osdl.org>
Sun, 1 Oct 2006 01:23:44 +0000 (21:23 -0400)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 1 Oct 2006 02:33:43 +0000 (19:33 -0700)
device_reprobe() should return an error code.  When it does so,
scsi_device_reprobe() should propagate it back.

Acked-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/scsi/scsi_device.h

index 895d212864cd99bafaaa0240e17b915133beaad1..b401c82036be216edf1dadf0f1ce01c0b1301891 100644 (file)
@@ -298,9 +298,9 @@ extern int scsi_execute_async(struct scsi_device *sdev,
                              void (*done)(void *, char *, int, int),
                              gfp_t gfp);
 
-static inline void scsi_device_reprobe(struct scsi_device *sdev)
+static inline int __must_check scsi_device_reprobe(struct scsi_device *sdev)
 {
-       device_reprobe(&sdev->sdev_gendev);
+       return device_reprobe(&sdev->sdev_gendev);
 }
 
 static inline unsigned int sdev_channel(struct scsi_device *sdev)