RDMA/addr: Mark addr_resolve as might_sleep()
authorJason Gunthorpe <jgg@mellanox.com>
Wed, 6 May 2020 07:46:52 +0000 (10:46 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 13 May 2020 00:32:52 +0000 (21:32 -0300)
commitf8f2a576cb0c574044c049210ea4096e5cb1d7fc
tree6155036d861d419d0ba5ec3a03d6c4aec5eb8e53
parent90ae0b57e4a515342fe74ffa21f6972f5145d645
RDMA/addr: Mark addr_resolve as might_sleep()

Under one path through ib_nl_fetch_ha() this calls nlmsg_new(GFP_KERNEL)
which is a sleeping call. This is a very rare path, so mark fetch_ha() and
the module external entry point that conditionally calls through to
fetch_ha() as might_sleep().

Link: https://lore.kernel.org/r/20200506074701.9775-2-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/addr.c