xfs: fix AGF/alloc workqueue deadlock.
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | xfs: introduce XFS_BMAPI_STACK_SWITCHfs/ fs/ fs/ +2 more | +13 | 1 reply | |
| 2/2 | xfs: move allocation stack switch up to xfs_bmapi_allocatefs/ fs/ fs/ +1 more | +54 | 1 reply |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Mark Tinguely |
|---|---|
| 1/2 | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/2] xfs: fix AGF/alloc workqueue deadlock.
Hi folks,
This is a followup from the last conversation with Mark about this deadlock. I haven't heard anything in the last coupl eof days, so I figured I'd just write the patches that did what I thought is needed.
Basically, the stack switch is only needed for userdata in the delayed allocation path, and nowhere else at this point in time. To make it so we switch stacks only at this point in time, I introduced a flag to pass to xfs_bmapi_write(). This means we don't switch stacks during direct IO, unwritten extent conversion or preallocation via fallocate/XFS_IOC_RESVSP.
I then moved the stack switch to xfs_bmapi_allocate(), which is where allocation happens. All the allocation calls within a single userdata extent allocation occur in this function (both data extent and bmap btree blocks), so switching stacks here will ensure that only mapping calls that require allocation will have the stack switched.
Comments welcome...
Cheers,
Dave.
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs