sane-project-website/old-archive/2000-05/0174.html

124 wiersze
4.3 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE>sane-devel: Re: Problem in sanei_scsi.c</TITLE>
<META NAME="Author" CONTENT="abel deuring (a.deuring@satzbau-gmbh.de)">
<META NAME="Subject" CONTENT="Re: Problem in sanei_scsi.c">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: Problem in sanei_scsi.c</H1>
<!-- received="Fri May 26 06:56:59 2000" -->
<!-- isoreceived="20000526135659" -->
<!-- sent="Fri, 26 May 2000 15:15:00 +0200" -->
<!-- isosent="20000526131500" -->
<!-- name="abel deuring" -->
<!-- email="a.deuring@satzbau-gmbh.de" -->
<!-- subject="Re: Problem in sanei_scsi.c" -->
<!-- id="392E78D4.4CABDD2B@satzbau-gmbh.de" -->
<!-- inreplyto="392DE440.8FCE1F4D@interlog.com" -->
<STRONG>From:</STRONG> abel deuring (<A HREF="mailto:a.deuring@satzbau-gmbh.de?Subject=Re:%20Problem%20in%20sanei_scsi.c&In-Reply-To=&lt;392E78D4.4CABDD2B@satzbau-gmbh.de&gt;"><EM>a.deuring@satzbau-gmbh.de</EM></A>)<BR>
<STRONG>Date:</STRONG> Fri May 26 2000 - 06:15:00 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0175.html">Russ Burdick: "Re: Acer Prisa 620P"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0173.html">Michaël van Eeden: "2 scanners scanning at the same time?"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0167.html">Douglas Gilbert: "Re: Problem in sanei_scsi.c"</A>
<!-- nextthread="start" -->
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#174">[ date ]</A>
<A HREF="index.html#174">[ thread ]</A>
<A HREF="subject.html#174">[ subject ]</A>
<A HREF="author.html#174">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Douglas Gilbert wrote:
<BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Simon Munton wrote:
</EM><BR>
<EM>&gt; &gt;
</EM><BR>
<EM>&gt; &gt; Hi,
</EM><BR>
<EM>&gt; &gt;
</EM><BR>
<EM>&gt; &gt; I've found a problem in the issue() function in sanei_scsi.c, that results
</EM><BR>
<EM>&gt; &gt; in the queue in sg filling up, and prevents any more scsi commands being
</EM><BR>
<EM>&gt; &gt; issued until the device is closed.
</EM><BR>
<EM>&gt; &gt;
</EM><BR>
<EM>&gt; &gt; There is a test on line 1690 which can erroneously try to reissue a scsi
</EM><BR>
<EM>&gt; &gt; command:
</EM><BR>
<EM>&gt; &gt; if (rp == fdp-&gt;sane_qhead &amp;&amp; errno == EAGAIN)
</EM><BR>
<EM>&gt; &gt;
</EM><BR>
<EM>&gt; &gt; The first time through the enclosing while loop, rp == fdp-&gt;sane_qhead. But
</EM><BR>
<EM>&gt; &gt; if the write() call issuing the command was successful, errno is left
</EM><BR>
<EM>&gt; &gt; unchanged, and if errno happens to contain EAGAIN, then the command is
</EM><BR>
<EM>&gt; &gt; issued again, and again... until the command queue in sg is full.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Simon,
</EM><BR>
<EM>&gt; This may explain the strange behaviour that I saw on a
</EM><BR>
<EM>&gt; Umax 1220S and reported to Oliver Rauch.
</EM><BR>
<P>Douglas and Simon,
<BR>
<P>I agree, this explains the behaviour reported by Douglas. I've put the
<BR>
fix to the CVS server.
<BR>
<P>Thanks for fixing the bug, Simon.
<BR>
<P>Abel
<BR>
<P><PRE>
--
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20Problem%20in%20sanei_scsi.c&In-Reply-To=&lt;392E78D4.4CABDD2B@satzbau-gmbh.de&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0175.html">Russ Burdick: "Re: Acer Prisa 620P"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0173.html">Michaël van Eeden: "2 scanners scanning at the same time?"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0167.html">Douglas Gilbert: "Re: Problem in sanei_scsi.c"</A>
<!-- nextthread="start" -->
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#174">[ date ]</A>
<A HREF="index.html#174">[ thread ]</A>
<A HREF="subject.html#174">[ subject ]</A>
<A HREF="author.html#174">[ author ]</A>
</UL>
<!-- trailer="footer" -->
<HR NOSHADE>
<P>
<SMALL>
<EM>
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
: <EM>Fri May 26 2000 - 06:59:08 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>