public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] xfs: fix AGF/alloc workqueue deadlock.
@ 2012-10-05  1:06 Dave Chinner
  2012-10-05  1:06 ` [PATCH 1/2] xfs: introduce XFS_BMAPI_STACK_SWITCH Dave Chinner
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Dave Chinner @ 2012-10-05  1:06 UTC (permalink / raw)
  To: xfs

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
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-10-18 22:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-05  1:06 [PATCH 0/2] xfs: fix AGF/alloc workqueue deadlock Dave Chinner
2012-10-05  1:06 ` [PATCH 1/2] xfs: introduce XFS_BMAPI_STACK_SWITCH Dave Chinner
2012-10-05 13:27   ` Mark Tinguely
2012-10-05  1:06 ` [PATCH 2/2] xfs: move allocation stack switch up to xfs_bmapi_allocate Dave Chinner
2012-10-05 13:28   ` Mark Tinguely
2012-10-18 22:51 ` [PATCH 0/2] xfs: fix AGF/alloc workqueue deadlock Ben Myers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox