]> err.no Git - linux-2.6/commitdiff
[SCSI] add scsi_reprobe_device
authorJames Bottomley <jejb@mulgrave.il.steeleye.com>
Tue, 14 Mar 2006 20:24:55 +0000 (14:24 -0600)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Tue, 14 Mar 2006 20:24:55 +0000 (14:24 -0600)
Original from Christoph Hellwig and Eric Moore.  This version exports
the scsi_reprobe_device() function as an inline.

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
include/scsi/scsi_device.h

index 1ec17ee1281589ab8f955fec57d5333f8c048f20..f2193cd0d31fec902fe57bd55c4862aa362d6040 100644 (file)
@@ -293,6 +293,11 @@ 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)
+{
+       device_reprobe(&sdev->sdev_gendev);
+}
+
 static inline unsigned int sdev_channel(struct scsi_device *sdev)
 {
        return sdev->channel;