diff options
author | Leon Romanovsky <leonro@mellanox.com> | 2017-05-23 14:38:14 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-07-17 21:21:23 -0400 |
commit | 0f4d027c3b4240ecb314daa948238d459fdc3a00 (patch) | |
tree | 96954ca4f854c2b41412b1a5da1a313f9494bd60 /include/rdma/rdma_vt.h | |
parent | d83187dda9b930dc268ab05da265f3d5d7eca451 (diff) | |
download | linux-0f4d027c3b4240ecb314daa948238d459fdc3a00.tar.gz linux-0f4d027c3b4240ecb314daa948238d459fdc3a00.tar.bz2 linux-0f4d027c3b4240ecb314daa948238d459fdc3a00.zip |
IB/{rdmavt, qib, hfi1}: Remove gfp flags argument
The caller to the driver marks GFP_NOIO allocations with help
of memalloc_noio-* calls now. This makes redundant to pass down
to the driver gfp flags, which can be GFP_KERNEL only.
The patch removes the gfp flags argument and updates all driver paths.
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Acked-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/rdma/rdma_vt.h')
-rw-r--r-- | include/rdma/rdma_vt.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/rdma/rdma_vt.h b/include/rdma/rdma_vt.h index 4878aaf7bdff..55af69271053 100644 --- a/include/rdma/rdma_vt.h +++ b/include/rdma/rdma_vt.h @@ -229,8 +229,7 @@ struct rvt_driver_provided { * ERR_PTR(err). The driver is free to return NULL or a valid * pointer. */ - void * (*qp_priv_alloc)(struct rvt_dev_info *rdi, struct rvt_qp *qp, - gfp_t gfp); + void * (*qp_priv_alloc)(struct rvt_dev_info *rdi, struct rvt_qp *qp); /* * Free the driver's private qp structure. @@ -319,7 +318,7 @@ struct rvt_driver_provided { /* Let the driver pick the next queue pair number*/ int (*alloc_qpn)(struct rvt_dev_info *rdi, struct rvt_qpn_table *qpt, - enum ib_qp_type type, u8 port_num, gfp_t gfp); + enum ib_qp_type type, u8 port_num); /* Determine if its safe or allowed to modify the qp */ int (*check_modify_qp)(struct rvt_qp *qp, struct ib_qp_attr *attr, |