Unable to delete big directory from BFS partition on USB stick
|Reported by:||emitrax||Owned by:||mmlr|
|Has a Patch:||no||Platform:||All|
From Haiku installed on real hardware, I tried to delete the directory with more the 50% of Webkit browser source code (don't recall how big it was). The operation took so long that I thought it was a deadlock. So I tried to look in KDL what was going on and basically I saw that
- The rm thread command was waiting on the mutex "usb_disk device lock"
- The holder of the lock was the "block notifier/writer" thread
- The "block notifier/writer" thread though, was waiting on the semaphore "usb disk callback notifier"
The CPU activity though was basically going up and down from 5% to 10%, IIRC, so I don't think it was a deadlock, but something was definitely wrong.
The bug was reproducable on my laptop.