I'll remove this patch, and use rcu_assign_pointer() in the callerCan we do something like:
struct md_thread __rcu *md_register_thread(void (*run) (struct md_thread *),
struct mddev *mddev, const char *name)
I think this is not necessary, if we don't want to change api, we must
use rcu_assign_pointer for each caller to set md_thread.
I think it is better to use rcu_assign_pointer at the caller side.
I agree.
Logan
.