dm kcopyd: avoid useless atomic operations
authorMikulas Patocka <mpatocka@redhat.com>
Wed, 26 May 2021 14:16:01 +0000 (10:16 -0400)
committerMike Snitzer <snitzer@redhat.com>
Fri, 4 Jun 2021 16:07:24 +0000 (12:07 -0400)
commitdb2351eb22e42c5e29ce0caa967a10bb34efabb5
treec004cbea20922b2029087f490a2271a996bbfd17
parent6b06dd5a972288d011a49d63eb9f6a5003d2e932
dm kcopyd: avoid useless atomic operations

The functions set_bit and clear_bit are atomic. We don't need
atomicity when making flags for dm-kcopyd. So, change them to direct
manipulation of the flags.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-kcopyd.c
drivers/md/dm-raid1.c
drivers/md/dm-zoned-reclaim.c