]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/core: Reduce poll batch for direct cq polling
authorMax Gurtovoy <maxg@mellanox.com>
Mon, 5 Mar 2018 18:09:48 +0000 (20:09 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 7 Mar 2018 03:08:39 +0000 (20:08 -0700)
commit7c40ff5805d43f6ca7434676822073f8ac2b2c0e
treebd1ad4f3cdc6ef1c8bd1e1affd3f4e392ebd1010
parent4a09a6ca3685be595982206de77b3498a69041e1
RDMA/core: Reduce poll batch for direct cq polling

Fix warning limit for kernel stack consumption:

drivers/infiniband/core/cq.c: In function 'ib_process_cq_direct':
drivers/infiniband/core/cq.c:78:1: error: the frame size of 1032 bytes
is larger than 1024 bytes [-Werror=frame-larger-than=]

Using smaller ib_wc array on the stack brings us comfortably below that
limit again.

Fixes: 3562013325a2 ("IB/cq: Don't force IB_POLL_DIRECT poll context for ib_process_cq_direct")
Reported-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Sergey Gorenko <sergeygo@mellanox.com>
Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/cq.c