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)
commitcea7c8bf77209ba11350e9c6f541064c820a174c
tree96252c92b9c382171a6425d8e8e3080b977f543e
parent12b9bf0b942ecca695fe709ea754091918d88b01
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