Re: [PATCH] move file->f_op->open out of mutex (misc_mtx) in misc_open

2015-01-09 Thread Greg KH
On Tue, Jan 06, 2015 at 08:34:07AM +0800, xiaomin1 wrote: > misc_mtx was used to mutex misc_list. > But file->f_op->open may be blocked by downloading > firmware in some devices' open. > So move file->f_op->open out of mutex (misc_mtx) > in misc_open to avoid this block. > It also make code more ef

Re: [PATCH] move file->f_op->open out of mutex (misc_mtx) in misc_open

2015-01-05 Thread One Thousand Gnomes
On Tue, 6 Jan 2015 08:34:07 +0800 xiaomin1 wrote: > misc_mtx was used to mutex misc_list. > But file->f_op->open may be blocked by downloading > firmware in some devices' open. > So move file->f_op->open out of mutex (misc_mtx) > in misc_open to avoid this block. > It also make code more efficie

Re: [PATCH] move file->f_op->open out of mutex (misc_mtx) in misc_open

2015-01-05 Thread Hillf Danton
> > misc_mtx was used to mutex misc_list. > But file->f_op->open may be blocked by downloading > firmware in some devices' open. > So move file->f_op->open out of mutex (misc_mtx) > in misc_open to avoid this block. > It also make code more efficiency. > > Signed-off-by: Zhang Dongxing > Signed-

[PATCH] move file->f_op->open out of mutex (misc_mtx) in misc_open

2015-01-05 Thread xiaomin1
misc_mtx was used to mutex misc_list. But file->f_op->open may be blocked by downloading firmware in some devices' open. So move file->f_op->open out of mutex (misc_mtx) in misc_open to avoid this block. It also make code more efficiency. Signed-off-by: Zhang Dongxing Signed-off-by: xiaoming wang