On 07-04-20, 14:54, andrew-sh.cheng wrote: > On Mon, 2020-04-06 at 14:59 +0530, Viresh Kumar wrote: > > On 06-04-20, 17:12, andrew-sh.cheng wrote: > > > I will use regulator in the locked region. > > > And regulator will use mutex_lock. > > > > Yeah, you can't use spinlock here, use a mutex. > > > Hi Viresh, > > I am not familiar with read/write lock. > Do you mean there is another read/write function, which is not > read_lock()/write_lock(), using mutex but not spinlock? Heh, I am asking you to use simple mutex here, leave the read/write lock thing completely as it won't work here. -- viresh