aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_transport_iscsi.c
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2008-01-28 17:41:19 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:08:07 -0500
commitb7c6ba6eb1234e35a74fb8ba8123232a7b1ba9e4 (patch)
tree672c08c95229a6ac242ab12a5195dceddb0f3127 /drivers/scsi/scsi_transport_iscsi.c
parent4f84d82f7a623f8641af2574425c329431ff158f (diff)
[NETNS]: Consolidate kernel netlink socket destruction.
Create a specific helper for netlink kernel socket disposal. This just let the code look better and provides a ground for proper disposal inside a namespace. Signed-off-by: Denis V. Lunev <den@openvz.org> Tested-by: Alexey Dobriyan <adobriyan@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/scsi/scsi_transport_iscsi.c')
-rw-r--r--drivers/scsi/scsi_transport_iscsi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/scsi_transport_iscsi.c b/drivers/scsi/scsi_transport_iscsi.c
index ef0e74264880..0d7b4e79415c 100644
--- a/drivers/scsi/scsi_transport_iscsi.c
+++ b/drivers/scsi/scsi_transport_iscsi.c
@@ -1558,7 +1558,7 @@ static __init int iscsi_transport_init(void)
1558 return 0; 1558 return 0;
1559 1559
1560release_nls: 1560release_nls:
1561 sock_release(nls->sk_socket); 1561 netlink_kernel_release(nls);
1562unregister_session_class: 1562unregister_session_class:
1563 transport_class_unregister(&iscsi_session_class); 1563 transport_class_unregister(&iscsi_session_class);
1564unregister_conn_class: 1564unregister_conn_class:
@@ -1573,7 +1573,7 @@ unregister_transport_class:
1573static void __exit iscsi_transport_exit(void) 1573static void __exit iscsi_transport_exit(void)
1574{ 1574{
1575 destroy_workqueue(iscsi_eh_timer_workq); 1575 destroy_workqueue(iscsi_eh_timer_workq);
1576 sock_release(nls->sk_socket); 1576 netlink_kernel_release(nls);
1577 transport_class_unregister(&iscsi_connection_class); 1577 transport_class_unregister(&iscsi_connection_class);
1578 transport_class_unregister(&iscsi_session_class); 1578 transport_class_unregister(&iscsi_session_class);
1579 transport_class_unregister(&iscsi_host_class); 1579 transport_class_unregister(&iscsi_host_class);