summaryrefslogtreecommitdiff
path: root/include/linux/ramoops.h
diff options
context:
space:
mode:
authorTomoki Sekiyama <tomoki.sekiyama@hds.com>2013-10-15 16:42:19 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-08 07:29:43 -0800
commit9e23d8bd64e49062faf4aa4abcedd3943cf1d09d (patch)
tree89bc0a5145047109664a1d729326a1e52cfcf085 /include/linux/ramoops.h
parent3dc062d269601c3f2f9860e9033906d303661622 (diff)
elevator: acquire q->sysfs_lock in elevator_change()
commit 7c8a3679e3d8e9d92d58f282161760a0e247df97 upstream. 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> Cc: Josh Boyer <jwboyer@fedoraproject.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/ramoops.h')
0 files changed, 0 insertions, 0 deletions