aboutsummaryrefslogtreecommitdiff
path: root/block/blk-settings.c
diff options
context:
space:
mode:
authorGravatar Tomoki Sekiyama <tomoki.sekiyama@hds.com> 2013-10-15 16:42:19 -0600
committerGravatar Jens Axboe <axboe@kernel.dk> 2013-11-08 09:00:13 -0700
commit7c8a3679e3d8e9d92d58f282161760a0e247df97 (patch)
tree220802e0b80df5b3191359cf09effcfae84718a5 /block/blk-settings.c
parentelevator: Fix a race in elevator switching and md device initialization (diff)
downloadlinux-7c8a3679e3d8e9d92d58f282161760a0e247df97.tar.gz
linux-7c8a3679e3d8e9d92d58f282161760a0e247df97.tar.bz2
linux-7c8a3679e3d8e9d92d58f282161760a0e247df97.zip
elevator: acquire q->sysfs_lock in elevator_change()
Add locking of q->sysfs_lock into elevator_change() (an exported function) to ensure it is held to protect q->elevator from elevator_init(), even if elevator_change() is called from non-sysfs paths. sysfs path (elv_iosched_store) uses __elevator_change(), non-locking version, as the lock is already taken by elv_iosched_store(). Signed-off-by: Tomoki Sekiyama <tomoki.sekiyama@hds.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-settings.c')
0 files changed, 0 insertions, 0 deletions