Re: [PATCH] Btrfs: fix race condition between writting and scrubing supers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 19/10/2013 16:03, Stefan Behrens wrote:
On 10/19/2013 12:32, Shilong Wang wrote:

> Yeah, it did not hurt. but it may output checksum mismatch. For example: > Writing 4k superblock is not totally finished, but we are trying to scrub it.

Have you ever seen this issue?


...

If this is really an issue and these 4K disk writes and reads interfere, let's find a better solution please.



Why don't you scrub optimistically as is now, and then just in case of checksum mismatch you re-scrub in transaction context?

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux