]> git.baikalelectronics.ru Git - kernel.git/commit
memremap: fix softlockup reports at teardown
authorDan Williams <dan.j.williams@intel.com>
Wed, 7 Feb 2018 03:34:11 +0000 (19:34 -0800)
committerDan Williams <dan.j.williams@intel.com>
Sat, 3 Mar 2018 03:34:50 +0000 (19:34 -0800)
commite4b81d9ec4506e640cd190bfe2306c725418428c
tree4c0dafd885b4d37cc1edd6cd295986746391e624
parent2d45264b3d299bd8394803f8169a57a4a69fc25d
memremap: fix softlockup reports at teardown

The cond_resched() currently in the setup path needs to be duplicated in
the teardown path. Rather than require each instance of
for_each_device_pfn() to open code the same sequence, embed it in the
helper.

Link: https://github.com/intel/ixpdimm_sw/issues/11
Cc: "Jérôme Glisse" <jglisse@redhat.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: <stable@vger.kernel.org>
Fixes: c8509fae6320 ("mm, zone_device: Replace {get, put}_zone_device_page()...")
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
kernel/memremap.c