From: Milan Broz Date: Fri, 10 Oct 2008 12:37:07 +0000 (+0100) Subject: dm crypt: fix async inc_pending X-Git-Tag: v2.6.28-rc1~729^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e59409891c9cc30cb4d5d73250b0c968af8e39b;p=pandora-kernel.git dm crypt: fix async inc_pending The pending reference count must be incremented *before* the async work is queued to another thread, not after. Otherwise there's a race if the work completes and decrements the reference count before it gets incremented. Signed-off-by: Milan Broz Signed-off-by: Alasdair G Kergon --- Reading git-diff-tree failed