[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-scsi
Subject: [PATCH 3/6] scsi_dh : release the refcounts in scsi_dh_alua handler
From: "Moger, Babu" <Babu.Moger () lsi ! com>
Date: 2010-07-28 22:59:24
Message-ID: E463DF2B2E584B4A82673F53D62C2EF4D05DC423 () cosmail01 ! lsi ! com
[Download RAW message or body]
This patch releases the refcounts when activate is complete in alua handler.
Signed-off-by: Babu Moger <babu.moger@lsi.com>
---
--- linux-2.6.35-rc5/drivers/scsi/device_handler/scsi_dh_alua.c.orig 2010-07-23 05:58:39.000000000 -0500
+++ linux-2.6.35-rc5/drivers/scsi/device_handler/scsi_dh_alua.c 2010-07-23 06:00:54.000000000 -0500
@@ -287,6 +287,8 @@ done:
h->callback_fn(h->callback_data, err);
h->callback_fn = h->callback_data = NULL;
}
+ kref_put(&h->sdev->scsi_dh_data->kref, scsi_dh_handler_cleanup);
+ put_device(&h->sdev->sdev_gendev);
return;
}
@@ -684,6 +686,8 @@ static int alua_activate(struct scsi_dev
out:
if (fn)
fn(data, err);
+ kref_put(&sdev->scsi_dh_data->kref, scsi_dh_handler_cleanup);
+ put_device(&sdev->sdev_gendev);
return 0;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic