1. 01 6月, 2021 2 次提交
  2. 09 4月, 2021 6 次提交
  3. 27 3月, 2021 1 次提交
  4. 01 3月, 2021 1 次提交
  5. 10 2月, 2021 1 次提交
  6. 28 1月, 2021 1 次提交
    • D
      block: fix bd_size_lock use · 0fe37724
      Damien Le Moal 提交于
      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: NDamien Le Moal <damien.lemoal@wdc.com>
      Signed-off-by: NJens Axboe <axboe@kernel.dk>
      0fe37724
  7. 25 1月, 2021 3 次提交
  8. 22 12月, 2020 1 次提交
  9. 02 12月, 2020 13 次提交
  10. 06 10月, 2020 1 次提交
  11. 08 9月, 2020 1 次提交
  12. 02 9月, 2020 4 次提交
  13. 01 9月, 2020 2 次提交
  14. 15 7月, 2020 1 次提交
    • M
      block: always remove partitions from blk_drop_partitions() · d0f0f1b4
      Ming Lei 提交于
      In theory, when GENHD_FL_NO_PART_SCAN is set, no partitions can be created
      on one disk. However, ioctl(BLKPG, BLKPG_ADD_PARTITION) doesn't check
      GENHD_FL_NO_PART_SCAN, so partitions still can be added even though
      GENHD_FL_NO_PART_SCAN is set.
      
      So far blk_drop_partitions() only removes partitions when disk_part_scan_enabled()
      return true. This way can make ghost partition on loop device after changing/clearing
      FD in case that PARTSCAN is disabled, such as partitions can be added
      via 'parted' on loop disk even though GENHD_FL_NO_PART_SCAN is set.
      
      Fix this issue by always removing partitions in blk_drop_partitions(), and
      this way is correct because the current code supposes that no partitions
      can be added in case of GENHD_FL_NO_PART_SCAN.
      Signed-off-by: NMing Lei <ming.lei@redhat.com>
      Reviewed-by: NChristoph Hellwig <hch@lst.de>
      Cc: Christoph Hellwig <hch@lst.de>
      Signed-off-by: NJens Axboe <axboe@kernel.dk>
      d0f0f1b4
  15. 27 5月, 2020 1 次提交
  16. 13 5月, 2020 1 次提交