Re: [PATCH] arcmsr: fix message allocation

2008-02-20 Thread James Bottomley
On Wed, 2008-02-20 at 13:29 +, Daniel Drake wrote: > arcmsr_iop_message_xfer() is called from atomic context under the > queuecommand scsi_host_template handler. James Bottomley pointed out > that the current GFP_KERNEL|GFP_DMA flags are wrong: firstly we are in > atomic context, secondly this

[PATCH] arcmsr: fix message allocation

2008-02-20 Thread Daniel Drake
arcmsr_iop_message_xfer() is called from atomic context under the queuecommand scsi_host_template handler. James Bottomley pointed out that the current GFP_KERNEL|GFP_DMA flags are wrong: firstly we are in atomic context, secondly this memory is not used for DMA. Also removed some unneeded casts.