Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/iscsi use same lock for ref/deref.
details: https://anonhg.NetBSD.org/src/rev/edebe9171a94
branches: trunk
changeset: 357916:edebe9171a94
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Sun Dec 03 07:23:45 2017 +0000
description:
use same lock for ref/deref.
diffstat:
sys/dev/iscsi/iscsi_ioctl.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (24 lines):
diff -r 23b6727ce2e6 -r edebe9171a94 sys/dev/iscsi/iscsi_ioctl.c
--- a/sys/dev/iscsi/iscsi_ioctl.c Sun Dec 03 07:23:12 2017 +0000
+++ b/sys/dev/iscsi/iscsi_ioctl.c Sun Dec 03 07:23:45 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iscsi_ioctl.c,v 1.26 2017/06/24 11:31:26 mlelstv Exp $ */
+/* $NetBSD: iscsi_ioctl.c,v 1.27 2017/12/03 07:23:45 mlelstv Exp $ */
/*-
* Copyright (c) 2004,2005,2006,2011 The NetBSD Foundation, Inc.
@@ -464,12 +464,12 @@
unref_session(session_t *session)
{
- mutex_enter(&session->lock);
+ mutex_enter(&iscsi_cleanup_mtx);
KASSERT(session != NULL);
KASSERT(session->refcount > 0);
if (--session->refcount == 0)
cv_broadcast(&session->sess_cv);
- mutex_exit(&session->lock);
+ mutex_exit(&iscsi_cleanup_mtx);
}
Home |
Main Index |
Thread Index |
Old Index