]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: force unplugs when switching from high to regular priority bios
authorChris Mason <chris.mason@oracle.com>
Thu, 4 Aug 2011 18:28:36 +0000 (14:28 -0400)
committerChris Mason <chris.mason@oracle.com>
Fri, 5 Aug 2011 17:48:18 +0000 (13:48 -0400)
commit5920ccfdaea0c96d2aaa9082e0d2f20b727a22f9
tree371f8ceacc858232947632eedbdb9cf9f049a8d0
parent61a34a4f05cadf7194baf812da2aee1e23923e66
Btrfs: force unplugs when switching from high to regular priority bios

Btrfs does bio submissions from a worker thread, and each device
has a list of high priority bios and regular priority bios.

Synchronous writes go to the high priority thread while async writes
go to regular list.  This commit brings back an explicit unplug
any time we switch from high to regular priority, which makes it
easier for the block layer to give us low latencies.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/volumes.c