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);
 }
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to