Bart Van Assche
2c2086afc2
block: Protect less code with sysfs_lock in blk_{un,}register_queue()
...
The __blk_mq_register_dev(), blk_mq_unregister_dev(),
elv_register_queue() and elv_unregister_queue() calls need to be
protected with sysfs_lock but other code in these functions not.
Hence protect only this code with sysfs_lock. This patch fixes a
locking inversion issue in blk_unregister_queue() and also in an
error path of blk_register_queue(): it is not allowed to hold
sysfs_lock around the kobject_del(&q->kobj) call.
Reviewed-by: Christoph Hellwig <hch@lst.de >
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com >
Signed-off-by: Jens Axboe <axboe@kernel.dk >
2018-01-18 12:54:44 -07:00
..
2018-01-10 09:12:16 -07:00
2017-11-03 11:29:50 -07:00
2018-01-09 08:45:25 -07:00
2018-01-18 08:21:37 -07:00
2018-01-18 08:21:37 -07:00
2018-01-18 08:21:37 -07:00
2018-01-17 09:59:33 -07:00
2018-01-06 09:18:00 -07:00
2017-11-04 12:31:15 -06:00
2018-01-17 09:46:54 -07:00
2018-01-17 09:49:21 -07:00
2017-11-04 12:40:13 -06:00
2017-06-09 09:27:32 -06:00
2017-11-02 11:10:55 +01:00
2017-11-14 15:32:19 -08:00
2018-01-15 08:50:32 -07:00
2018-01-09 20:23:19 -07:00
2017-07-24 10:01:31 -06:00
2018-01-12 14:47:57 -07:00
2017-11-02 11:10:55 +01:00
2017-08-18 08:08:14 -06:00
2017-08-08 14:58:03 -04:00
2018-01-17 09:49:21 -07:00
2018-01-17 09:49:21 -07:00
2018-01-15 08:41:38 -07:00
2017-12-22 11:09:37 -07:00
2017-11-14 15:32:19 -08:00
2017-02-27 20:54:05 +02:00
2018-01-17 21:38:52 -07:00
2018-01-17 09:46:54 -07:00
2017-11-10 19:53:25 -07:00
2017-11-02 11:10:55 +01:00
2017-11-21 15:57:07 -08:00
2017-11-02 11:10:55 +01:00
2018-01-18 12:54:44 -07:00
2017-11-02 11:10:55 +01:00
2017-11-21 15:57:07 -08:00
2018-01-10 11:47:47 -07:00
2017-11-23 22:00:20 -07:00
2017-11-02 11:10:55 +01:00
2018-01-05 09:22:17 -07:00
2018-01-18 12:54:41 -07:00
2018-01-06 09:18:00 -07:00
2018-01-09 11:15:17 -07:00
2017-11-10 19:53:25 -07:00
2017-09-08 18:26:49 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-01-05 09:22:17 -07:00
2018-01-18 12:54:42 -07:00
2018-01-15 08:41:38 -07:00
2017-10-25 12:25:00 -06:00
2017-06-21 11:46:07 -06:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-01 08:20:02 -06:00
2017-11-02 11:10:55 +01:00
2018-01-06 09:23:11 -07:00
2017-01-17 10:03:33 -07:00
2017-09-11 09:45:52 -06:00
2017-11-02 11:10:55 +01:00
2018-01-10 12:30:37 -07:00
2017-09-11 09:45:52 -06:00
2017-07-03 16:56:25 -06:00