From: Christoph Hellwig Date: Tue, 8 Jul 2014 10:25:28 +0000 (+0200) Subject: block: don't assume last put of shared tags is for the host X-Git-Tag: omap-for-v3.17/fixes-against-rc2~249^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d45b3279a5a2252cafcd665bbf2db8c9b31ef783;p=pandora-kernel.git block: don't assume last put of shared tags is for the host There is no inherent reason why the last put of a tag structure must be the one for the Scsi_Host, as device model objects can be held for arbitrary periods. Merge blk_free_tags and __blk_free_tags into a single funtion that just release a references and get rid of the BUG() when the host reference wasn't the last. Signed-off-by: Christoph Hellwig Cc: stable@kernel.org Signed-off-by: Jens Axboe --- Reading git-diff-tree failed