Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/iscsi Add missing mutex_exit().



details:   https://anonhg.NetBSD.org/src/rev/d9799e9a9ba0
branches:  trunk
changeset: 345696:d9799e9a9ba0
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sun Jun 05 06:19:59 2016 +0000

description:
Add missing mutex_exit().

diffstat:

 sys/dev/iscsi/iscsi_send.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 8a466936a00f -r d9799e9a9ba0 sys/dev/iscsi/iscsi_send.c
--- a/sys/dev/iscsi/iscsi_send.c        Sun Jun 05 05:41:53 2016 +0000
+++ b/sys/dev/iscsi/iscsi_send.c        Sun Jun 05 06:19:59 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: iscsi_send.c,v 1.26 2016/06/05 05:40:29 mlelstv Exp $  */
+/*     $NetBSD: iscsi_send.c,v 1.27 2016/06/05 06:19:59 mlelstv Exp $  */
 
 /*-
  * Copyright (c) 2004,2005,2006,2011 The NetBSD Foundation, Inc.
@@ -1368,6 +1368,7 @@
                throttle_ccb(ccb, TRUE);
 
                if (!waitok) {
+                       mutex_exit(&sess->lock);
                        DEBC(conn, 10, ("Throttling send_command, ccb = %p\n",ccb));
                        return;
                }



Home | Main Index | Thread Index | Old Index