From: Joe Thornber Date: Mon, 30 Jun 2014 17:26:30 +0000 (-0400) Subject: dm io: simplify dec_count and sync_io X-Git-Tag: omap-for-v3.17/fixes-against-rc2~72^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97e7cdf12ba324b599d404172c5899185ef2bbde;p=pandora-kernel.git dm io: simplify dec_count and sync_io Remove the io struct off the stack in sync_io() and allocate it from the mempool like is done in async_io(). dec_count() now always calls a callback function and always frees the io struct back to the mempool (so sync_io and async_io share this pattern). Signed-off-by: Joe Thornber Signed-off-by: Mike Snitzer --- Reading git-diff-tree failed