|
@@ -30,6 +30,7 @@
|
|
|
#include <linux/sched.h>
|
|
|
#include <linux/sched/clock.h>
|
|
|
#include <linux/sched/task.h>
|
|
|
+#include <linux/sched/mm.h>
|
|
|
#include <linux/delay.h>
|
|
|
#include <linux/module.h>
|
|
|
#include <linux/proc_fs.h>
|
|
@@ -2876,6 +2877,8 @@ static void __lockdep_trace_alloc(gfp_t gfp_mask, unsigned long flags)
|
|
|
if (unlikely(!debug_locks))
|
|
|
return;
|
|
|
|
|
|
+ gfp_mask = memalloc_noio_flags(gfp_mask);
|
|
|
+
|
|
|
/* no reclaim without waiting on it */
|
|
|
if (!(gfp_mask & __GFP_DIRECT_RECLAIM))
|
|
|
return;
|
|
@@ -3947,7 +3950,7 @@ EXPORT_SYMBOL_GPL(lock_unpin_lock);
|
|
|
|
|
|
void lockdep_set_current_reclaim_state(gfp_t gfp_mask)
|
|
|
{
|
|
|
- current->lockdep_reclaim_gfp = gfp_mask;
|
|
|
+ current->lockdep_reclaim_gfp = memalloc_noio_flags(gfp_mask);
|
|
|
}
|
|
|
|
|
|
void lockdep_clear_current_reclaim_state(void)
|