“061991ec6edceda48d60f7a53e17b8d3416266ae”上不存在“git@gitcode.net:openeuler/kernel.git”
-
由 Danil Kipnis 提交于
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: 1eb54f8f ("block/rnbd: client: sysfs interface functions") Link: https://lore.kernel.org/r/20200521185909.457245-1-danil.kipnis@cloud.ionos.comReported-by: NRandy Dunlap <rdunlap@infradead.org> Suggested-by: NGuoqing Jiang <guoqing.jiang@cloud.ionos.com> Signed-off-by: NDanil Kipnis <danil.kipnis@cloud.ionos.com> Acked-by: NRandy Dunlap <rdunlap@infradead.org> Signed-off-by: NJason Gunthorpe <jgg@mellanox.com>
cdb685cb