> > > +#define MINPHYS          (20*1024)
> > 
> > This makes no sense. If you want to override MINPHYS, you need to
> > override for the whole kernel, not only here.
> 
> MINPHYS is just a name I have chosen. It is not used anywhere else in the 
> kernel. You are confusing this with MAXPHYS.

Oops, you're right. Sorry about the confusion.

> sc->sc_xfer_max is computed according to the host's capabilities. What I 
> want to simulate with this diff is a host adapter that can only cope with 
> transfers < 64k == MAXPHYS.

Back to your original problem, you might want to print the sc_link
struct as well the scsi_adapter struct it points to, when you detect a
transfer larger than MAXPHYS. It has likely been overriden or reset to
NULL by mistake at some point.

Reply via email to