Commit fb05f3e5 authored by Andrew Vasquez's avatar Andrew Vasquez Committed by James Bottomley

[PATCH] Re: 2.6.8-rc3-mm2: Debug: sleeping function called from invalid

> Andrew Vasquez wrote:
>
> >
> >This allocation should be done with GFP_ATOMIC flags.  The attached
> >patch should apply cleanly to any recent kernel
> >
>
> and seems to work fine.
>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 2cd0453f
No related merge requests found
......@@ -3590,7 +3590,7 @@ qla2x00_get_new_sp(scsi_qla_host_t *ha)
{
srb_t *sp;
sp = mempool_alloc(ha->srb_mempool, GFP_KERNEL);
sp = mempool_alloc(ha->srb_mempool, GFP_ATOMIC);
if (sp)
atomic_set(&sp->ref_count, 1);
return (sp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment