----- Original Message -----
From: "Roman Zippel" <[EMAIL PROTECTED]>
To: "Douglas Gilbert" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, May 26, 2000 4:24 AM
Subject: Re: sg bug fixes
> 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.
This shouldn't happen. Well, actually, with 2.2 kernels, anything could
happen given the horrible way the queueing is structured. In 2.4 it should
never happen at all.
Actually, once I get around to fixing sg to use Scsi_Request instead, things
would be even cleaner.
-Eric
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]