Skip to content
Browse files

Prevent "lock (iscsi) sx does not match earlier (sleep mutex) lock" p…

…anic

triggered by "kldload iscsi_initiator; kldunload iscsi_initiator; kldload
iscsi".

Approved by:	re (marius)
  • Loading branch information...
1 parent b1d537a commit 9c38c532fffb7380cebafcee5521c5ceffd56ff0 @trasz trasz committed Sep 23, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 sys/dev/iscsi_initiator/iscsi.c
View
2 sys/dev/iscsi_initiator/iscsi.c
@@ -717,7 +717,7 @@ iscsi_start(void)
isc = malloc(sizeof(struct isc_softc), M_ISCSI, M_ZERO|M_WAITOK);
isc->dev = make_dev(&iscsi_cdevsw, max_sessions, UID_ROOT, GID_WHEEL, 0600, "iscsi");
isc->dev->si_drv1 = isc;
- mtx_init(&isc->isc_mtx, "iscsi", NULL, MTX_DEF);
+ mtx_init(&isc->isc_mtx, "iscsi-isc", NULL, MTX_DEF);
TAILQ_INIT(&isc->isc_sess);
/*

0 comments on commit 9c38c53

Please sign in to comment.
Something went wrong with that request. Please try again.