[Ocfs2-devel] Can recovery be done in process context (as opposed to kthread)?
Joel Becker
jlbec at evilplan.org
Sun Sep 11 01:45:23 PDT 2011
On Fri, Sep 09, 2011 at 05:22:49PM -0500, Goldwyn Rodrigues wrote:
> Hi,
>
> I finally got back to improve the recovery procedure by offloading
> work to work queues. However, I would like to know if we can
> completely do away with ocfs2rec kthread. The process would just mark
> the nodes which need recovery and offload the work on the work queues
> and wait until all is over.
>
> The reason for doing it this way is to make the mount process
> killable. Currently the dlm locks are taken by ocfs2rec kthread while
> the mount waits in uninterruptible sleep while the recovery happens.
If the mount dies, but then actually succeeds in the
background...that's weird and violates the Principle of Least Surprise.
Joel
--
"Conservative, n. A statesman who is enamoured of existing evils,
as distinguished from the Liberal, who wishes to replace them
with others."
- Ambrose Bierce, The Devil's Dictionary
http://www.jlbec.org/
jlbec at evilplan.org
More information about the Ocfs2-devel
mailing list