]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: unisys: visornic: Replace GFP_ATOMIC with GFP_KERNEL
authorHariprasad Kelam <hariprasad.kelam@gmail.com>
Wed, 22 May 2019 17:05:30 +0000 (22:35 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 May 2019 07:23:15 +0000 (09:23 +0200)
commit2a8af420e7a58485bc5052c16c3d51913163e0fc
treedf5900a59da4a3edf05b5b95ed616c903088de5f
parent43ad38191816a6b77cc4bd8222353320a71a1d2d
staging: unisys: visornic: Replace GFP_ATOMIC with GFP_KERNEL

As per below information

GFP_KERNEL  FLAG

This is a normal allocation and might block. This is the flag to use in
process context code when it is safe to sleep.

GFP_ATOMIC FLAG

The allocation is high-priority and does not sleep. This is the flag to
use in interrupt handlers, bottom halves and other situations where you
cannot sleep

And we can take advantage of GFP_KERNEL , as when system is in low
memory chances of getting success is high compared to GFP_ATOMIC.

As visornic_probe is in  process context we can use GPF_KERNEL.

Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visornic/visornic_main.c