> > On Thu, Feb 08, 2018 at 12:09:43PM -0800, Steve Wise wrote: > > uaccess_kernel() isn't sufficient to determine if an rdma resource is > > user-mode or not. For example, resources allocated in the add_one() > > function of an ib_client get falsely labeled as user mode, when they > > are kernel mode allocations. EG: mad qps. > > I found the reason. > > It is due to the difference between code compiled as > a module (=m) or compiled in as monolith (=y). The "add_one()" runs in user > space contexts in first scenario and as kernel space context in second > scenario. I'm not using modules so it worked for me. > > Thanks, > Reviewed-by: Leon Romanovsky <leonro@xxxxxxxxxxxx> Good to know. Thanks! Steve. -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html