Remove a redundant assertion.

MFC after:	1 week
Sponsored by:	Dell EMC Isilon
This commit is contained in:
Mark Johnston 2018-05-06 00:05:03 +00:00
parent 40e805221b
commit 681554d70b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=333279

View File

@ -207,7 +207,6 @@ g_mirror_event_send(void *arg, int state, int flags)
mtx_unlock(&sc->sc_queue_mtx);
if ((flags & G_MIRROR_EVENT_DONTWAIT) != 0)
return (0);
sx_assert(&sc->sc_lock, SX_XLOCKED);
G_MIRROR_DEBUG(4, "%s: Sleeping %p.", __func__, ep);
sx_xunlock(&sc->sc_lock);
while ((ep->e_flags & G_MIRROR_EVENT_DONE) == 0) {