]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix wrong error handle when the device is missing or is not writeable
authorMiao Xie <miaox@cn.fujitsu.com>
Thu, 19 Jun 2014 02:42:55 +0000 (10:42 +0800)
committerChris Mason <clm@fb.com>
Thu, 19 Jun 2014 21:20:56 +0000 (14:20 -0700)
commit891e67d3c0f23dfd92087b33e1c4b44392186597
tree870ecde1af3c547ed7e067a86d4fa93740581b0d
parent364c19048e9d6220d4c162ac118a3052ffcab287
Btrfs: fix wrong error handle when the device is missing or is not writeable

The original bio might be submitted, so we shoud increase bi_remaining to
account for it when we deal with the error that the device is missing or
is not writeable, or we would skip the endio handle.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/volumes.c