From: Tejun Heo Date: Sun, 7 Sep 2014 23:03:58 +0000 (+0900) Subject: bdi: remove bdi->wb_lock locking around bdi->dev clearing in bdi_unregister() X-Git-Tag: fixes-against-v3.18-rc2~52^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b68757341d8015d28e261990deea58dd836e04da;p=pandora-kernel.git bdi: remove bdi->wb_lock locking around bdi->dev clearing in bdi_unregister() The only places where NULL test on bdi->dev is used are bdi_[un]register(). The functions can't be called in parallel anyway and there's no point in protecting bdi->dev clearing with a lock. Remove bdi->wb_lock grabbing around bdi->dev clearing and move it after device_unregister() call so that bdi->dev doesn't have to be cached in a local variable. This patch shouldn't introduce any behavior difference. Signed-off-by: Tejun Heo Signed-off-by: Jens Axboe --- Reading git-diff-tree failed