diff options
author | 2020-05-21 20:59:09 +0200 | |
---|---|---|
committer | 2020-05-22 15:50:22 -0300 | |
commit | cdb685cb9158fa67f6f4584ea39279ed7ae39253 (patch) | |
tree | d2acae747ebb20ddc93aa5eabb32df75a36a42a4 /drivers/infiniband/ulp | |
parent | IB/cma: Fix ports memory leak in cma_configfs (diff) | |
download | wireguard-linux-cdb685cb9158fa67f6f4584ea39279ed7ae39253.tar.xz wireguard-linux-cdb685cb9158fa67f6f4584ea39279ed7ae39253.zip |
RDMA/rnbd: Fix compilation error when CONFIG_MODULES is disabled
module_is_live function is only defined when CONFIG_MODULES is enabled.
Use try_module_get instead to check whether the module is being removed.
When module unload and manuall unmapping is happening in parallel, we can
try removing the symlink twice: rnbd_client_exit
vs. rnbd_clt_unmap_dev_store.
This is probably not the best way to deal with this race in general, but
for now this fixes the compilation issue when CONFIG_MODULES is disabled
and has no functional impact. Regression tests passed.
Fixes: 1eb54f8f5dd8 ("block/rnbd: client: sysfs interface functions")
Link: https://lore.kernel.org/r/[email protected]
Reported-by: Randy Dunlap <[email protected]>
Suggested-by: Guoqing Jiang <[email protected]>
Signed-off-by: Danil Kipnis <[email protected]>
Acked-by: Randy Dunlap <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'drivers/infiniband/ulp')
0 files changed, 0 insertions, 0 deletions