block: flush: fix IO hang in case of flood fua req
authorMing Lei <tom.leiming@gmail.com>
Wed, 26 Oct 2016 08:57:15 +0000 (16:57 +0800)
committerJens Axboe <axboe@fb.com>
Wed, 26 Oct 2016 13:49:27 +0000 (07:49 -0600)
commit94d7dea448fae6cbb83395323c1d2fd7f19dc388
tree45662f72c66596b223f1ea5218dfbd8380eea2b5
parent423221d1745b53656db896bd34646d09d620c759
block: flush: fix IO hang in case of flood fua req

This patch fixes one issue reported by Kent, which can
be triggered in bcachefs over sata disk. Actually it
is a generic issue in block flush vs. blk-tag.

Cc: Christoph Hellwig <hch@infradead.org>
Reported-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-flush.c