FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Device-mapper Development

 
 
LinkBack Thread Tools
 
Old 07-28-2010, 10:59 PM
"Moger, Babu"
 
Default scsi_dh : release the refcounts in scsi_dh_hp_sw handler when activate is complete

This patch releases the refcounts when activate is complete in scsi_dh_hp_sw handler.

Signed-off-by: Babu Moger <babu.moger@lsi.com>
---
--- linux-2.6.35-rc5/drivers/scsi/device_handler/scsi_dh_hp_sw.c.orig 2010-07-23 06:02:22.000000000 -0500
+++ linux-2.6.35-rc5/drivers/scsi/device_handler/scsi_dh_hp_sw.c 2010-07-23 06:03:17.000000000 -0500
@@ -230,6 +230,9 @@ 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;

}
@@ -307,6 +310,9 @@ static int hp_sw_activate(struct scsi_de

if (fn)
fn(data, ret);
+ kref_put(&sdev->scsi_dh_data->kref, scsi_dh_handler_cleanup);
+ put_device(&sdev->sdev_gendev);
+
return 0;
}




--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
 

Thread Tools




All times are GMT. The time now is 09:36 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org