kopia lustrzana https://gitlab.com/sane-project/website
124 wiersze
4.3 KiB
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=<392E78D4.4CABDD2B@satzbau-gmbh.de>"><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>>
|
|
</EM><BR>
|
|
<EM>> Simon Munton wrote:
|
|
</EM><BR>
|
|
<EM>> >
|
|
</EM><BR>
|
|
<EM>> > Hi,
|
|
</EM><BR>
|
|
<EM>> >
|
|
</EM><BR>
|
|
<EM>> > I've found a problem in the issue() function in sanei_scsi.c, that results
|
|
</EM><BR>
|
|
<EM>> > in the queue in sg filling up, and prevents any more scsi commands being
|
|
</EM><BR>
|
|
<EM>> > issued until the device is closed.
|
|
</EM><BR>
|
|
<EM>> >
|
|
</EM><BR>
|
|
<EM>> > There is a test on line 1690 which can erroneously try to reissue a scsi
|
|
</EM><BR>
|
|
<EM>> > command:
|
|
</EM><BR>
|
|
<EM>> > if (rp == fdp->sane_qhead && errno == EAGAIN)
|
|
</EM><BR>
|
|
<EM>> >
|
|
</EM><BR>
|
|
<EM>> > The first time through the enclosing while loop, rp == fdp->sane_qhead. But
|
|
</EM><BR>
|
|
<EM>> > if the write() call issuing the command was successful, errno is left
|
|
</EM><BR>
|
|
<EM>> > unchanged, and if errno happens to contain EAGAIN, then the command is
|
|
</EM><BR>
|
|
<EM>> > issued again, and again... until the command queue in sg is full.
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> Simon,
|
|
</EM><BR>
|
|
<EM>> This may explain the strange behaviour that I saw on a
|
|
</EM><BR>
|
|
<EM>> 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=<392E78D4.4CABDD2B@satzbau-gmbh.de>">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>
|