From: Christoph Hellwig Date: Thu, 17 Jun 2010 07:54:32 +0000 (+0200) Subject: block: fix DISCARD_BARRIER requests X-Git-Tag: v2.6.35-rc4~43^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbbf055692aeb25c54c49d9ca84532de836fbba0;p=pandora-kernel.git block: fix DISCARD_BARRIER requests Filesystems assume that DISCARD_BARRIER are full barriers, so that they don't have to track in-progress discard operation when submitting new I/O. But currently we only treat them as elevator barriers, which don't actually do the nessecary queue drains. Also remove the unlikely around both the DISCARD and BARRIER requests - the happen far too often for a static mispredict. Signed-off-by: Christoph Hellwig Signed-off-by: Jens Axboe --- Reading git-diff-tree failed