Jia-Ju Bai,Yes, I think so.
Am 05.06.2017 um 05:38 schrieb Jia-Ju Bai:
The driver may sleep under a spin lock, and the function call path is:So, this happens only when dbg_check_heap() is activated, right?
ubifs_change_lp (acquire the lock by spin_lock)
change_category
ubifs_remove_from_cat
remove_from_lpt_heap
dbg_check_heap
ubifs_lpt_lookup
ubifs_read_nnode
kzalloc(GFP_NOFS) --> may sleep
To fix it, "GFP_NOFS" is replaced with "GFP_ATOMIC".
Thanks,
//richard