[SCSI] arcmsr: fix message allocation
authorDaniel Drake <dsd@gentoo.org>
Wed, 20 Feb 2008 13:29:05 +0000 (13:29 +0000)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Fri, 22 Feb 2008 15:08:13 +0000 (09:08 -0600)
commit69e562c234440fb7410877b5b24f4b29ef8521d1
treeb0db2e22c52d3e085eb5bbe4925e0d921267884d
parentad008d42bcec99911b3270a8349f8ec8405a1c4e
[SCSI] arcmsr: fix message allocation

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.

Signed-off-by: Daniel Drake <dsd@gentoo.org>
Cc: Nick Cheng <nick.cheng@areca.com.tw>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/arcmsr/arcmsr_hba.c