]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: remove redundant null bdev counting during flush submission
authorAnand Jain <anand.jain@oracle.com>
Tue, 13 Jun 2017 09:05:40 +0000 (17:05 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2017 16:26:04 +0000 (18:26 +0200)
commitc1572947860138ce45ca6ca9cb4c51f9f192141d
tree96252c92b9c382171a6425d8e8e3080b977f543e
parente4d96deb8bc3599ca15b306dc6f2cb0ab601d14a
btrfs: remove redundant null bdev counting during flush submission

There is no extra benefit to count null bdev during the submit loop,
as these null devices will be anyway checked during command
completion device loop just after the submit loop. We are holding the
device_list_mutex, the device->bdev status won't change in between.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c