]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Use schedule_timeout_interruptible
authorNikolay Borisov <nborisov@suse.com>
Tue, 23 Jan 2018 12:46:53 +0000 (14:46 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Mar 2018 13:09:36 +0000 (15:09 +0200)
commit75107636e92656328130b651df2bdf0456df6be9
tree59ae4fb7db92adf90024cd10a231e4d7b9d46de4
parentd0edccb5b822a98c1bac078b91faa356962bff60
btrfs: Use schedule_timeout_interruptible

Instead of manually fiddling with the state of the task
(RUNNING->INTERRUPTIBLE->RUNNING) again just use schedule_timeout_interruptible
which adjusts the task state as needed. No functional changes.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Josef Bacik <jbacik@fb.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c