| title: | patch scsi dh create sysfs file dh state for |
|
This is a note to let you know that we have just queued up the patch titled
Subject: [SCSI] scsi_dh: create sysfs file, dh_state for all SCSI disk devices
to the 2.6.32-stable tree. Its filename is
scsi_dh-create-sysfs-file-dh_state-for-all-scsi-disk-devices.patch
A git repo of this tree can be found at
rel="nofollow" www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
From 5917290ce9b376866b165d02a5ed88d5ecdb32d0 Mon Sep 17 00:00:00 2001
From: Chandra Seetharaman <sekharan@xxxxxxxxxx
Date: Fri, 11 Sep 2009 10:20:35 -0700
Subject: [SCSI] scsi_dh: create sysfs file, dh_state for all SCSI disk devices
From: Chandra Seetharaman <sekharan@xxxxxxxxxx
commit 5917290ce9b376866b165d02a5ed88d5ecdb32d0 upstream.
Create the sysfs file, dh_state even if the new SCSI device is not
in the any of the device handlers internal lists.
Signed-Off-by: Chandra Seetharaman <sekharan@xxxxxxxxxx
Acked-by: Hannes Reinecke <hare@xxxxxxx
Signed-off-by: James Bottomley <James.Bottomley@xxxxxxx
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxx
---
drivers/scsi/device_handler/scsi_dh.c | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
--- a/drivers/scsi/device_handler/scsi_dh.c
+++ b/drivers/scsi/device_handler/scsi_dh.c
@@ -304,18 +304,15 @@ static int scsi_dh_notifier(struct notif
sdev = to_scsi_device(dev);
if (action == BUS_NOTIFY_ADD_DEVICE) {
+ err = device_create_file(dev, &scsi_dh_state_attr);
+ /* dont care about err */
devinfo = device_handler_match(NULL, sdev);
- if (!devinfo)
- goto out;
-
- err = scsi_dh_handler_attach(sdev, devinfo);
- if (!err)
- err = device_create_file(dev, &scsi_dh_state_attr);
+ if (devinfo)
+ err = scsi_dh_handler_attach(sdev, devinfo);
} else if (action == BUS_NOTIFY_DEL_DEVICE) {
device_remove_file(dev, &scsi_dh_state_attr);
scsi_dh_handler_detach(sdev, NULL);
}
-out:
return err;
}
Patches currently in stable-queue which might be from sekharan@xxxxxxxxxx are
queue-2.6.32/scsi_dh-create-sysfs-file-dh_state-for-all-scsi-disk-devices.patch
--
To unsubscribe from this list: send the line "unsubscribe stable-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at rel="nofollow" vger.kernel.org/majordomo-info.html vger.kernel.org/majordomo-info.html
|