Tejun Heo b68757341d 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 <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@fb.com>
2014-09-08 10:00:38 -06:00
..
2014-08-06 18:01:16 -07:00
2014-08-06 18:01:16 -07:00
2014-08-06 18:01:23 -07:00
2014-08-08 15:57:17 -07:00
2014-01-27 21:02:39 -08:00
2014-08-08 15:57:17 -07:00
2014-08-08 15:57:17 -07:00
2014-08-06 18:01:23 -07:00