rdma provider module references

Steve Wise
2010-12-15T16:15:05Z

Hey Roland,

I notice that if I have a user rdma application running that has an rdma connection using iw_cxgb3, then the iw_cxgb3
module reference count is bumped and thus it cannot be unloaded. However when I have an NFSRDMA connection that
utilizes iw_cxgb3, the module reference count is not bumped, and iw_cxgb3 can erroneously be unloaded while the NFSRDMA
connection is still active, causing a crash.

My question is more of what is the right thing to do here.

Should the module refcnt be the way to prohibit a provider from being unloaded?

Thoughts?

Thanks,