Re: [PATCH 16/23] md/md-llbitmap: implement bit state machine

From: Yu Kuai
Date: Mon Jun 30 2025 - 07:30:43 EST


在 2025/06/30 19:05, Yu Kuai 写道:
Is it the reason
that it only changes one byte at a time and the system can guarantee
the atomic when updating one byte?

I think it's not atomic, I don't use atomic API here, because all mormal
write are always changing the byte to the same value, if old value is
read by concurrent writes, then this byte will be written multiple
times, and I don't see any problems this way, just pure memory
operation.

Thanks,
Kuai