Date: Tue, 17 May 2016 11:59:38 +0000 (UTC) From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r300046 - head/sys/dev/iscsi Message-ID: <201605171159.u4HBxchG017577@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: trasz Date: Tue May 17 11:59:38 2016 New Revision: 300046 URL: https://svnweb.freebsd.org/changeset/base/300046 Log: Make iscsi_ioctl_daemon_send() actually work by adding missing locking. MFC after: 1 month Sponsored by: The FreeBSD Foundation Modified: head/sys/dev/iscsi/iscsi.c Modified: head/sys/dev/iscsi/iscsi.c ============================================================================== --- head/sys/dev/iscsi/iscsi.c Tue May 17 11:22:08 2016 (r300045) +++ head/sys/dev/iscsi/iscsi.c Tue May 17 11:59:38 2016 (r300046) @@ -1620,7 +1620,9 @@ iscsi_ioctl_daemon_send(struct iscsi_sof KASSERT(error == 0, ("icl_pdu_append_data(..., M_WAITOK) failed")); free(data, M_ISCSI); } + ISCSI_SESSION_LOCK(is); icl_pdu_queue(ip); + ISCSI_SESSION_UNLOCK(is); return (0); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605171159.u4HBxchG017577>