diff mbox series

[RFC,9/9] RDMA/rv: Integrate the file operations into the rv module

Message ID 20210319125635.34492-10-kaike.wan@intel.com (mailing list archive)
State RFC
Headers show
Series A rendezvous module | expand

Commit Message

Wan, Kaike March 19, 2021, 12:56 p.m. UTC
From: Kaike Wan <kaike.wan@intel.com>

Integrate the file operations into the module_init and module_exit
functions so that user applications can access the rv module.

Signed-off-by: Todd Rimmer <todd.rimmer@intel.com>
Signed-off-by: Kaike Wan <kaike.wan@intel.com>
---
 drivers/infiniband/ulp/rv/rv_main.c | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/drivers/infiniband/ulp/rv/rv_main.c b/drivers/infiniband/ulp/rv/rv_main.c
index c40ee36c6f9e..04c5a8606598 100644
--- a/drivers/infiniband/ulp/rv/rv_main.c
+++ b/drivers/infiniband/ulp/rv/rv_main.c
@@ -253,11 +253,16 @@  static int __init rv_init_module(void)
 		return -EINVAL;
 	}
 
+	if (rv_file_init()) {
+		ib_unregister_client(&rv_client);
+		return -EINVAL;
+	}
 	return 0;
 }
 
 static void __exit rv_cleanup_module(void)
 {
+	rv_file_uninit();
 	ib_unregister_client(&rv_client);
 	rv_deinit_devices();
 }