Re: [PATCH] block: avoid to serialize blkdev_fallocate

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

 



On 5/12/22 06:48, Ming Lei wrote:
Commit f278eb3d8178 ("block: hold ->invalidate_lock in blkdev_fallocate")
adds ->invalidate_lock in blkdev_fallocate() for preventing stale data
from being read during fallocate().

However, the side effect is that blkdev_fallocate() becomes serialized
since blkdev_fallocate() always blocks.

Add one atomic fallocate counter for allowing blkdev_fallocate() to
be run concurrently so that discard/write_zero bios from different
fallocate() can be submitted in parallel.

Please consider adding a "Fixes:" tag since otherwise this patch won't be integrated automatically into any of the stable kernel trees.

Thanks,

Bart.



[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux