summaryrefslogtreecommitdiff
path: root/include/scsi/scsi_device.h
diff options
context:
space:
mode:
authorJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-03-14 23:24:55 +0300
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-03-14 23:24:55 +0300
commite28482c5b24006e9e4a867f9995baf358cbc1059 (patch)
tree87a21e0d1df72f8809625a2161f39ea07c51340b /include/scsi/scsi_device.h
parente5b3a65fd7244e662691cf617145983ecde28cc9 (diff)
downloadlinux-e28482c5b24006e9e4a867f9995baf358cbc1059.tar.xz
[SCSI] add scsi_reprobe_device
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>
Diffstat (limited to 'include/scsi/scsi_device.h')
-rw-r--r--include/scsi/scsi_device.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/scsi/scsi_device.h b/include/scsi/scsi_device.h
index 1ec17ee12815..f2193cd0d31f 100644
--- a/include/scsi/scsi_device.h
+++ b/include/scsi/scsi_device.h
@@ -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;