diff options
| author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2017-08-03 09:11:51 +0000 |
|---|---|---|
| committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2017-08-03 09:11:51 +0000 |
| commit | 1d4905b5b0375d1338e47c95e8545ea7c3c02a75 (patch) | |
| tree | 92194706566de2517bab247ecfd55b6f01e36aae /sys/dev/mlx5/mlx5_core | |
| parent | 9391cb0228c930a5f6c3a9a97fcab72ca555fd0d (diff) | |
Notes
Diffstat (limited to 'sys/dev/mlx5/mlx5_core')
| -rw-r--r-- | sys/dev/mlx5/mlx5_core/mlx5_cmd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/mlx5/mlx5_core/mlx5_cmd.c b/sys/dev/mlx5/mlx5_core/mlx5_cmd.c index 5cb257ce3127..1105a47013ce 100644 --- a/sys/dev/mlx5/mlx5_core/mlx5_cmd.c +++ b/sys/dev/mlx5/mlx5_core/mlx5_cmd.c @@ -1434,12 +1434,11 @@ static int cmd_exec_helper(struct mlx5_core_dev *dev, struct mlx5_cmd_msg *inb; struct mlx5_cmd_msg *outb; int pages_queue; - gfp_t gfp; + const gfp_t gfp = GFP_KERNEL; int err; u8 status = 0; pages_queue = is_manage_pages(in); - gfp = callback ? GFP_ATOMIC : GFP_KERNEL; inb = alloc_msg(dev, in_size, gfp); if (IS_ERR(inb)) { |
