s390/dasd: hold request queue sysfs lock when calling elevator_init()
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Thu, 31 Oct 2013 12:24:28 +0000 (13:24 +0100)
committerJiri Slaby <jslaby@suse.cz>
Mon, 31 Mar 2014 12:22:21 +0000 (14:22 +0200)
commita6bbc17f7d8d495f66556a550b69beddbd1aa438
treea085be022a4d268de2d7c70f0cd8851ae7d03976
parente35c7079f86c08cf6808f9cd3bcc5f6e944318f3
s390/dasd: hold request queue sysfs lock when calling elevator_init()

commit ef0899410ff630b2e75306da49996dbbfa318165 upstream.

"elevator: Fix a race in elevator switching and md device initialization"
changed the semantics of elevator_init() in a way that now enforces to hold
the corresponding request queue's sysfs_lock when calling elevator_init()
to fix a race.
The patch did not convert the s390 dasd device driver which is the only
device driver which also calls elevator_init(). So add the missing locking.

Cc: Tomoki Sekiyama <tomoki.sekiyama@hds.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/s390/block/dasd.c