xen/pvcalls: use GFP_ATOMIC under spin lock
PATCH 1/1 xen/pvcalls: use GFP_ATOMIC under spin lock
A spin lock is taken here so we should use GFP_ATOMIC.
Fixes 9774c6cca266 ("xen/pvcalls: implement accept command")
Signed-off-by Wei Yongjun <[email protected]>
--- drivers/xen/pvcalls-front.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/xen/pvcalls-front.c +1 -1
@@ -807,7 +807,7 @@ int pvcalls_front_accept(struct socket *sock, struct socket *newsock, int flags)pvcalls_exit ();return ret; } - map2 =kzalloc (sizeof (*map2),GFP_KERNEL ); + map2 =kzalloc (sizeof (*map2),GFP_ATOMIC );if (map2 ==NULL ) {clear_bit (PVCALLS_FLAG_ACCEPT_INFLIGHT , (void *)&map->passive.flags);
Quoted 4 lines · Wei Yongjun
A spin lock is taken here so we should use
GFP_ATOMIC.Fixes 9774c6cca266 ("xen/pvcalls: implement accept command")Signed-off-by Wei Yongjun <[email protected]>
Reviewed-by Juergen Gross <[email protected]>
Juergen
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 4 lines · Wei Yongjun
A spin lock is taken here so we should use
GFP_ATOMIC.Fixes 9774c6cca266 ("xen/pvcalls: implement accept command")Signed-off-by Wei Yongjun <[email protected]>
Reviewed-by Juergen Gross <[email protected]>
Juergen
Boris Ostrovsky
AppliedQuoted 4 lines · Wei Yongjun
A spin lock is taken here so we should use
GFP_ATOMIC.Fixes 9774c6cca266 ("xen/pvcalls: implement accept command")Signed-off-by Wei Yongjun <[email protected]>
Applied to for-linus-4.15
-boris
Boris Ostrovsky
AppliedQuoted 4 lines · Wei Yongjun
A spin lock is taken here so we should use
GFP_ATOMIC.Fixes 9774c6cca266 ("xen/pvcalls: implement accept command")Signed-off-by Wei Yongjun <[email protected]>
Applied to for-linus-4.15
-boris
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel