All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [usb-storage] Re: 2 PATCHES: fix request_tranferlength
@ 2002-07-27 22:48 Andries.Brouwer
  2002-07-28  2:55 ` Matthew Dharm
  0 siblings, 1 reply; 14+ messages in thread
From: Andries.Brouwer @ 2002-07-27 22:48 UTC (permalink / raw)
  To: linux-scsi, mdharm-scsi, usb-storage

    I haven't seen these patches integrated into a kernel yet... have I just
    missed them, or is there some reason they have been rejected?

    > +++ b/drivers/scsi/scsi_scan.c    Sun Jul 21 00:55:37 2002
    > -              256, SCSI_TIMEOUT+4*HZ, 3);
    > +              scsi_cmd[4], SCSI_TIMEOUT+4*HZ, 3);

    > +++ b/drivers/scsi/sd.c    Sun Jul 21 00:55:44 2002
    > -              512, SD_TIMEOUT, MAX_RETRIES);
    > +              255, SD_TIMEOUT, MAX_RETRIES);

There are many more possibilities.
Since the number of hours in a day is very finite, Linus cannot
look at everything, so even if the patch is perfect it can be ignored.

There is not really a SCSI maintainer, but there are people that are
well-known as active in the SCSI area. You may try to submit via
one of them.

But then the question is whether these are good patches.

I booted 2.5.29 earlier this evening and was greeted by
kernel BUG at transport.c: 351 and
kernel BUG at scsiglue.c: 150.
(And the usb-storage module now hangs initializing; rmmod fails,
reboot is necessary.)

The former BUG_ON wants to have len == srb->request_bufflen.
But I don't know whether that is wise. It is less confusing
when bufflen indicates the size of the buffer available,
rather than the number of bytes you expect to move.
It is not unusual to get one byte more than you asked for,
in case you ask for an odd number of bytes.

So, maybe these patches aren't clear improvements.

Andries

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2002-07-31  5:35 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-27 22:48 [usb-storage] Re: 2 PATCHES: fix request_tranferlength Andries.Brouwer
2002-07-28  2:55 ` Matthew Dharm
2002-07-28  4:54   ` Douglas Gilbert
2002-07-28  9:11     ` Matthew Dharm
2002-07-30  5:24     ` Matthew Dharm
2002-07-30 13:40       ` Douglas Gilbert
2002-07-31  4:29         ` Matthew Dharm
2002-07-31  5:14           ` Doug Ledford
2002-07-31  5:35           ` Douglas Gilbert
2002-07-28 10:22   ` Kai Makisara
2002-07-28 19:31     ` Matthew Dharm
2002-07-28 21:01       ` Kai Makisara
2002-07-29 19:51         ` Doug Ledford
2002-07-29 20:50           ` Kai Makisara

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.