svn commit: r300046 - head/sys/dev/iscsi
Edward Tomasz Napierala
trasz at FreeBSD.org
Tue May 17 11:59:39 UTC 2016
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);
}
More information about the svn-src-head
mailing list