[PATCH 4.7 112/184] dm log writes: move IO accounting earlier to fix error path

2016-09-22 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Mikulas Patocka commit a5d60783df61fbb67b7596b8a0f6b4b2e05251d5 upstream. Move log_one_block()'s atomic_inc(>io_blocks) before bio_alloc() to fix a bug that the target

[PATCH 4.7 112/184] dm log writes: move IO accounting earlier to fix error path

2016-09-22 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Mikulas Patocka commit a5d60783df61fbb67b7596b8a0f6b4b2e05251d5 upstream. Move log_one_block()'s atomic_inc(>io_blocks) before bio_alloc() to fix a bug that the target hangs if bio_alloc()