]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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>
Wed, 26 May 2021 20:18:31 +0000 (16:18 -0400)
commita679c58ef7fffe56b064312caf9c001bc931f8d9
treec750ef1ca67d5e2a90f848d195db3f526efdd993
parent2fe9dd8694d6b621f5812d9b5cc63c0c23244fd7
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