btrfs: add cond_resched() calls when resolving backrefs
authorEdmund Nadolski <enadolski@suse.com>
Wed, 12 Jul 2017 22:20:09 +0000 (16:20 -0600)
committerDavid Sterba <dsterba@suse.com>
Wed, 16 Aug 2017 14:12:01 +0000 (16:12 +0200)
commit9dd14fd6964e6db02346d5f472f915029728b8cf
treed75a9264eb13a4ded20aa652d98824bb38bb4251
parent00142756e1f8015d2f8ce96532d156689db7e448
btrfs: add cond_resched() calls when resolving backrefs

Since backref resolution is CPU-intensive, the cond_resched calls
should help alleviate soft lockup occurences.

Signed-off-by: Edmund Nadolski <enadolski@suse.com>
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/backref.c