blkdev: Fix livelock when loop device updates capacity
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | nbd: Use set_blocksize() to set device blocksizedrivers/ | +3 | 0 replies | |
| 2/2 | blockdev: Fix livelocks on loop devicefs/ | +18 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] blkdev: Fix livelock when loop device updates capacity
Hello,
this series fixes a long standing issue with loop device which can change block device size under a mounted filesystem which causes infinite loop inside buffer head code. See patch 2/2 for details about the problem.
Note that generally it is dangerous to resize the loop device when filesystem is mounted on top of it. However there are some valid use cases for this (such as growing the loop device and then increasing the filesystem size) so we cannot just restrict the functionality to exclusive owners of the device.
Honza