]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: submit superblock io with REQ_META and REQ_PRIO
authorDavid Sterba <dsterba@suse.com>
Fri, 18 Aug 2017 16:16:25 +0000 (18:16 +0200)
committerDavid Sterba <dsterba@suse.com>
Tue, 22 Aug 2017 11:22:05 +0000 (13:22 +0200)
commit717ab0d22550014e0e2380641c3fabc322625897
treef222af5b05e1c3e0a11e1bd252604568138151f2
parentef5113a5757d57f8819dbd3e3049fb207634e6f8
btrfs: submit superblock io with REQ_META and REQ_PRIO

The superblock is also metadata of the filesystem so the relevant IO
should be tagged as such. We also tag it as high priority, as it's the
last block committed for metadata from a given transaction. Any delays
would effectively block the whole transaction, also blocking any other
operation holding the device_list_mutex.

Reviewed-by: Josef Bacik <jbacik@fb.com>
Reviewed-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c