dm: dont rewrite dm_disk(md)->part0.in_flight
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 6 Dec 2018 16:41:16 +0000 (11:41 -0500)
committerJens Axboe <axboe@kernel.dk>
Mon, 10 Dec 2018 15:30:37 +0000 (08:30 -0700)
commit80a787ba3809deb694ee632919badb73890daf05
treed7ff1137fc58685d26b86a8fe845a21c8e6cfa90
parent96f774106ed48808a5e314741e3414c617d14460
dm: dont rewrite dm_disk(md)->part0.in_flight

generic_start_io_acct and generic_end_io_acct already update the variable
in_flight using atomic operations, so we don't have to overwrite them
again.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/dm.c