Ticket #2256 (new defect)
[kernel] problem with swap file on fat partition
| Reported by: | Richard.Kralovic | Owned by: | openmoko-devel |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | unknown | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Blocked By: | ||
| Blocking: | Estimated Completion (week): | ||
| HasPatchForReview: | no | PatchReviewResult: | |
| Reproducible: |
Description
I tried to setup a swap file on a fat partition on sd card (using kernel linux-openmoko-2.6.28-2.6.28-oe1+git~c06ae36180dee695aa25bbae869b2aa26-r3), but the swapon command hangs; /proc/<pid>/wchan says that it hangs in _fat_bmap.
In fs/fat/inode.c:205, there is some mutex_lock protecting call to generic_block_bmap. After commenting it out, everything works nicely. But I assume this is not the correct fix...
Change History
Note: See
TracTickets for help on using
tickets.

Doesn't sounds like it's down to anything we're doing to the kernel in particular.
If you want to probe deeper what's happening, there are a bunch of mutex deadlock debugging CONFIG options that you should enable, it can detect deadlocks and dump the "call stack" of who holds what -- that'll shine more light on the exact source of the madness.