On Tue, Jun 04, 2019 at 04:23:07PM +0800, Ming Lei wrote: > The pre-allocated small SGL depends on SG_CHAIN, so if the ARCH doesn't > support SG_CHAIN, pre-allocation of small SGL can't work at all. > > Fixes this issue by not using small pre-allocation in case of > NO_SG_CHAIN. > > Cc: Christoph Hellwig <hch@xxxxxx> > Cc: Bart Van Assche <bvanassche@xxxxxxx> > Cc: Ewan D. Milne <emilne@xxxxxxxxxx> > Cc: Hannes Reinecke <hare@xxxxxxxx> > Cc: Guenter Roeck <linux@xxxxxxxxxxxx> > Fixes: c3288dd8c232 ("scsi: core: avoid pre-allocating big SGL for data") > Reported-by: Guenter Roeck <linux@xxxxxxxxxxxx> > Signed-off-by: Ming Lei <ming.lei@xxxxxxxxxx> alpha images still crash with this patch applied (see response to patch 0/2) for traceback). Guenter