From: Peter Zijlstra Date: Tue, 3 Feb 2015 11:55:31 +0000 (+0100) Subject: block: Simplify bsg complete all X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~101^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c561246524c3319473bf47b558354f7ff47f0cf;p=pandora-kernel.git block: Simplify bsg complete all It took me a few tries to figure out what this code did; lets rewrite it into a more regular form. The thing that makes this one 'special' is the BSG_F_BLOCK flag, if that is not set we're not supposed/allowed to block and should spin wait for completion. The (new) io_wait_event() will never see a false condition in case of the spinning and we will therefore not block. Cc: Linus Torvalds Signed-off-by: Peter Zijlstra (Intel) Signed-off-by: Jens Axboe --- Reading git-diff-tree failed