]> git.baikalelectronics.ru Git - kernel.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>
Fri, 4 Jun 2021 16:07:24 +0000 (12:07 -0400)
commite8b924c4290eeca4fecf3fb37295a6da5dbdb8fd
treec004cbea20922b2029087f490a2271a996bbfd17
parentd857c7679ed77f807adac186cd1b9491098f503a
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