Damien Le Moal
0fe37724f8
block: fix bd_size_lock use
...
Some block device drivers, e.g. the skd driver, call set_capacity() with
IRQ disabled. This results in lockdep ito complain about inconsistent
lock states ("inconsistent {HARDIRQ-ON-W} -> {IN-HARDIRQ-W} usage")
because set_capacity takes a block device bd_size_lock using the
functions spin_lock() and spin_unlock(). Ensure a consistent locking
state by replacing these calls with spin_lock_irqsave() and
spin_lock_irqrestore(). The same applies to bdev_set_nr_sectors().
With this fix, all lockdep complaints are resolved.
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com >
Signed-off-by: Jens Axboe <axboe@kernel.dk >
2021-01-28 07:31:50 -07:00
..
2021-01-28 07:31:50 -07:00
2020-08-23 17:36:59 -05:00
2020-08-18 07:48:08 -07:00
2021-01-05 11:33:50 -07:00
2020-08-18 07:48:08 -07:00
2020-08-18 07:48:08 -07:00
2020-07-02 12:38:18 -06:00
2020-12-02 09:46:55 -07:00
2019-11-07 12:28:13 -07:00
2019-11-07 12:28:13 -07:00
2021-01-28 07:31:48 -07:00
2020-12-04 09:42:00 -07:00
2020-07-01 07:27:24 -06:00
2020-10-05 10:47:43 -06:00
2020-10-05 10:47:43 -06:00
2020-05-27 05:21:23 -06:00
2020-12-16 12:57:51 -08:00
2020-10-06 07:29:53 -06:00
2020-07-16 10:22:15 -06:00
2021-01-05 11:33:32 -07:00
2020-10-08 07:59:48 -06:00
2020-12-01 14:53:40 -07:00
2020-09-23 09:18:39 -06:00
2020-12-16 12:57:51 -08:00
2020-10-20 07:08:17 -06:00
2021-01-08 08:20:27 -07:00
2019-06-13 03:00:30 -06:00
2019-05-31 15:12:34 -06:00
2019-05-31 15:12:34 -06:00
2020-12-04 09:42:00 -07:00
2020-10-13 12:12:44 -07:00
2020-10-09 12:46:28 -06:00
2020-09-29 08:11:00 -06:00
2020-09-03 15:20:47 -06:00
2020-03-17 20:55:21 +01:00
2020-12-17 13:41:30 -07:00
2021-01-24 21:25:17 -07:00
2020-07-24 22:09:55 -04:00
2020-07-15 09:33:37 -06:00
2019-10-15 10:13:13 -06:00
2020-12-16 13:09:32 -08:00
2020-09-01 16:48:46 -06:00
2020-10-09 12:46:28 -06:00
2020-12-02 12:44:20 -07:00
2020-07-31 16:29:47 -06:00
2020-11-30 15:01:18 -07:00
2020-05-29 16:30:39 -06:00
2020-12-07 17:34:21 -07:00
2020-12-16 13:09:32 -08:00
2020-12-04 09:42:00 -07:00
2020-09-23 09:18:13 -06:00
2020-01-03 09:33:21 +01:00
2020-10-09 12:34:06 -06:00
2021-01-28 07:31:50 -07:00
2020-12-01 14:53:40 -07:00
2020-09-01 19:38:33 -06:00
2020-09-01 16:49:26 -06:00
2020-06-14 01:57:21 +09:00
2020-11-20 11:52:52 -07:00
2020-09-03 15:20:47 -06:00
2020-06-24 09:15:56 -06:00
2020-09-03 15:20:47 -06:00
2020-03-12 08:00:10 -06:00
2020-10-13 13:04:41 -07:00
2020-03-12 08:00:10 -06:00
2020-01-06 20:59:04 -07:00