RE: Patch added to scsi-rc-fixes-2.6: [SCSI] arcmsr: fix message allocation

2008-02-25 Thread James Bottomley
On Mon, 2008-02-25 at 18:47 +0800, nickcheng wrote: > Sorry, maybe I did not ask distinctly enough. > I mean if I would like to allocate a memory space from ZONE_DMA for atomic > context, why can I not use kmalloc(1032, GFP_ATOMIC|GFP_DMA)? > In case of lack of GFP_DMA, kmalloc would grab the memor

RE: Patch added to scsi-rc-fixes-2.6: [SCSI] arcmsr: fix message allocation

2008-02-25 Thread nickcheng
nt: Monday, February 25, 2008 6:15 PM To: [EMAIL PROTECTED] Cc: 'James Bottomley'; linux-scsi@vger.kernel.org Subject: Re: Patch added to scsi-rc-fixes-2.6: [SCSI] arcmsr: fix message allocation nickcheng wrote: > Hi, > I definitely agree it is in atomic context but why is the memory

Re: Patch added to scsi-rc-fixes-2.6: [SCSI] arcmsr: fix message allocation

2008-02-25 Thread Daniel Drake
nickcheng wrote: Hi, I definitely agree it is in atomic context but why is the memory not for DMA? Would you please show me why? It would probably be easier if you could explain where you believe the memory IS used for DMA :) Anyway, looking at ARCMSR_MESSAGE_READ_RQBUFFER current code does