diff options
| author | Tejun Heo <tj@kernel.org> | 2014-09-08 08:03:58 +0900 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2016-09-13 13:35:19 +0200 |
| commit | 6af0cab8fa04cfe9fb99f244171116f9a7a18e4d (patch) | |
| tree | de35183aaba6b7444a4a278161e65a3f31660079 /fs/block_dev.c | |
| parent | c6d4531c0e9f64beec07fa8eea53bdfc33d2515c (diff) | |
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>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Diffstat (limited to 'fs/block_dev.c')
0 files changed, 0 insertions, 0 deletions
