[8897] in linux-scsi channel archive
Re: sg bug fixes
daemon@ATHENA.MIT.EDU (Roman Zippel)
Fri May 26 04:35:31 2000
Date: Fri, 26 May 2000 10:24:15 +0200 (MET DST)
From: Roman Zippel <zippel@fh-brandenburg.de>
To: Douglas Gilbert <dgilbert@interlog.com>
Cc: linux-scsi@vger.rutgers.edu
In-Reply-To: <392DDFAE.B8D70EE6@interlog.com>
Message-ID: <Pine.GSO.4.10.10005261009580.29119-100000@zeus.fh-brandenburg.de>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Hi,
> Back to the reported bug fixes and a question. Was there
> some observed problems that these fixes solved?
I have a multithreaded application, where one thread reads the results
from the device and the others can write to it. Under load I had two
problems:
- sg_read() was too fast, so the sg_command_done() didn't find the request
in the list.
- If the sd device tries to do something at the same time,
scsi_allocate_device() fails and do_sd_request() simply returns and it
stops until the next request is coming, so I needed to restart it somehow.
bye, Roman
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.rutgers.edu