]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaa4f8ab827b9887330c5195852a90b6c5613fb51
tree6155036d861d419d0ba5ec3a03d6c4aec5eb8e53
parent7f1410d2e8cf45ff7398ce403edcba065427c2f2
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