Date: Fri, 4 May 2012 18:57:45 +0000 (UTC) From: Kip Macy <kmacy@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r235030 - projects/iscsi_opt/sys/dev/iscsi/initiator Message-ID: <201205041857.q44Ivjao018222@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kmacy Date: Fri May 4 18:57:45 2012 New Revision: 235030 URL: http://svn.freebsd.org/changeset/base/235030 Log: unfreeze queue without running scheduler if freeze count > 0 Modified: projects/iscsi_opt/sys/dev/iscsi/initiator/isc_sm.c Modified: projects/iscsi_opt/sys/dev/iscsi/initiator/isc_sm.c ============================================================================== --- projects/iscsi_opt/sys/dev/iscsi/initiator/isc_sm.c Fri May 4 18:54:51 2012 (r235029) +++ projects/iscsi_opt/sys/dev/iscsi/initiator/isc_sm.c Fri May 4 18:57:45 2012 (r235030) @@ -367,12 +367,16 @@ isc_so_snd_upcall(struct socket *so, voi if (sp->cam_sim->devq->send_queue.qfrozen_cnt[0] != 1) { - if (sp->cam_sim->devq->send_queue.qfrozen_cnt[0] != 0) + if (sp->cam_sim->devq->send_queue.qfrozen_cnt[0] != 0) printf("qfrozen_cnt went to bad value %d\n", sp->cam_sim->devq->send_queue.qfrozen_cnt[0]); + if (sp->cam_sim->devq->send_queue.qfrozen_cnt[0] < 0) + sp->cam_sim->devq->send_queue.qfrozen_cnt[0] = 0; } sp->cam_flags |= ISC_QUNFREEZE; - + sp->cam_flags &= ~ISC_QFROZEN; + if (sp->cam_sim->devq->send_queue.qfrozen_cnt[0] > 0) + xpt_release_simq(sp->cam_sim, 0); mtx_lock(&sp->io_mtx); if (sp->flags & ISC_OWAITING) wakeup(&sp->flags);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205041857.q44Ivjao018222>