[Devel] [RFC PATCH vz9 v3 05/11] ploop: remove unneccessary lock
Alexander Atanasov
alexander.atanasov at virtuozzo.com
Mon Oct 21 13:13:52 MSK 2024
now proper bitops are used for status we do not need to lock.
Signed-off-by: Alexander Atanasov <alexander.atanasov at virtuozzo.com>
---
drivers/md/dm-ploop-cmd.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/md/dm-ploop-cmd.c b/drivers/md/dm-ploop-cmd.c
index 8bbb1680c579..61daaf8415c9 100644
--- a/drivers/md/dm-ploop-cmd.c
+++ b/drivers/md/dm-ploop-cmd.c
@@ -273,9 +273,7 @@ static int ploop_write_zero_cluster_sync(struct ploop *ploop,
static void ploop_make_md_wb(struct ploop *ploop, struct md_page *md)
{
- write_lock_irq(&ploop->bat_rwlock);
set_bit(MD_WRITEBACK, &md->status);
- write_unlock_irq(&ploop->bat_rwlock);
}
static int ploop_grow_relocate_cluster(struct ploop *ploop,
--
2.43.0
More information about the Devel
mailing list