xen-scsifront: use GFP_ATOMIC under spin_lock
Subsystems (4)
PATCH 1/1 xen-scsifront: use GFP_ATOMIC under spin_lock
This function is only called with a spin_lock held and IRQs disabled. The allocation is not allowed to sleep and NOIO is not sufficient, it has to be ATOMIC.
drivers/scsi/xen-scsifront.c +1 -1
@@ -359,7 +359,7 @@ static int map_data_for_request(struct vscsifrnt_info *info, } seg_grants =vscsiif_grants_sg (data_grants); shadow->sg =kcalloc (data_grants, -sizeof (struct scsiif_request_segment ),GFP_NOIO ); +sizeof (struct scsiif_request_segment ),GFP_ATOMIC );if (!shadow->sg)return -ENOMEM ; }
Quoted 5 lines · Dan Carpenter
This function is only called with a
spin_lockheld and IRQs disabled. The allocation is not allowed to sleep and NOIO is not sufficient, it has to be ATOMIC.Signed-off-by Dan Carpenter <[email protected]>
Thanks,
Juergen
Quoted 20 lines
drivers/scsi/xen-scsifront.c +1
-1@@ -359,7 +359,7 @@ static int map_data_for_request(struct vscsifrnt_info *info, } seg_grants =vscsiif_grants_sg (data_grants); shadow->sg =kcalloc (data_grants, -sizeof (struct scsiif_request_segment ),GFP_NOIO ); +sizeof (struct scsiif_request_segment ),GFP_ATOMIC );if (!shadow->sg)return -ENOMEM ; }_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 5 lines · Dan Carpenter
This function is only called with a
spin_lockheld and IRQs disabled. The allocation is not allowed to sleep and NOIO is not sufficient, it has to be ATOMIC.Signed-off-by Dan Carpenter <[email protected]>
Thanks,
Juergen
Quoted 20 lines
drivers/scsi/xen-scsifront.c +1
-1@@ -359,7 +359,7 @@ static int map_data_for_request(struct vscsifrnt_info *info, } seg_grants =vscsiif_grants_sg (data_grants); shadow->sg =kcalloc (data_grants, -sizeof (struct scsiif_request_segment ),GFP_NOIO ); +sizeof (struct scsiif_request_segment ),GFP_ATOMIC );if (!shadow->sg)return -ENOMEM ; }_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
David Vrabel
AppliedQuoted 3 lines · Dan Carpenter
This function is only called with a
spin_lockheld and IRQs disabled. The allocation is not allowed to sleep and NOIO is not sufficient, it has to be ATOMIC.
Applied this and the scsiback one to devel/for-linus-3.18.
Thanks.
David
David Vrabel
AppliedQuoted 3 lines · Dan Carpenter
This function is only called with a
spin_lockheld and IRQs disabled. The allocation is not allowed to sleep and NOIO is not sufficient, it has to be ATOMIC.
Applied this and the scsiback one to devel/for-linus-3.18.
Thanks.
David