Searched hist:c2b4bb8cb3741c0bacf3683e4c1ecd04c977ada3 (Results 1 – 5 of 5) sorted by relevance
/openbmc/linux/block/partitions/ |
H A D | core.c | diff c2b4bb8cb3741c0bacf3683e4c1ecd04c977ada3 Sun Aug 23 04:10:42 CDT 2020 Christoph Hellwig <hch@lst.de> block: fix locking for struct block_device size updates
Two different callers use two different mutexes for updating the block device size, which obviously doesn't help to actually protect against concurrent updates from the different callers. In addition one of the locks, bd_mutex is rather prone to deadlocks with other parts of the block stack that use it for high level synchronization.
Switch to using a new spinlock protecting just the size updates, as that is all we need, and make sure everyone does the update through the proper helper.
This fixes a bug reported with the nvme revalidating disks during a hot removal operation, which can currently deadlock on bd_mutex.
Reported-by: Xianting Tian <xianting_tian@126.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Jens Axboe <axboe@kernel.dk>
|
/openbmc/linux/drivers/s390/block/ |
H A D | dasd_ioctl.c | diff c2b4bb8cb3741c0bacf3683e4c1ecd04c977ada3 Sun Aug 23 04:10:42 CDT 2020 Christoph Hellwig <hch@lst.de> block: fix locking for struct block_device size updates
Two different callers use two different mutexes for updating the block device size, which obviously doesn't help to actually protect against concurrent updates from the different callers. In addition one of the locks, bd_mutex is rather prone to deadlocks with other parts of the block stack that use it for high level synchronization.
Switch to using a new spinlock protecting just the size updates, as that is all we need, and make sure everyone does the update through the proper helper.
This fixes a bug reported with the nvme revalidating disks during a hot removal operation, which can currently deadlock on bd_mutex.
Reported-by: Xianting Tian <xianting_tian@126.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Jens Axboe <axboe@kernel.dk>
|
/openbmc/linux/drivers/block/aoe/ |
H A D | aoecmd.c | diff c2b4bb8cb3741c0bacf3683e4c1ecd04c977ada3 Sun Aug 23 04:10:42 CDT 2020 Christoph Hellwig <hch@lst.de> block: fix locking for struct block_device size updates
Two different callers use two different mutexes for updating the block device size, which obviously doesn't help to actually protect against concurrent updates from the different callers. In addition one of the locks, bd_mutex is rather prone to deadlocks with other parts of the block stack that use it for high level synchronization.
Switch to using a new spinlock protecting just the size updates, as that is all we need, and make sure everyone does the update through the proper helper.
This fixes a bug reported with the nvme revalidating disks during a hot removal operation, which can currently deadlock on bd_mutex.
Reported-by: Xianting Tian <xianting_tian@126.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Jens Axboe <axboe@kernel.dk>
|
/openbmc/linux/include/linux/ |
H A D | blk_types.h | diff c2b4bb8cb3741c0bacf3683e4c1ecd04c977ada3 Sun Aug 23 04:10:42 CDT 2020 Christoph Hellwig <hch@lst.de> block: fix locking for struct block_device size updates
Two different callers use two different mutexes for updating the block device size, which obviously doesn't help to actually protect against concurrent updates from the different callers. In addition one of the locks, bd_mutex is rather prone to deadlocks with other parts of the block stack that use it for high level synchronization.
Switch to using a new spinlock protecting just the size updates, as that is all we need, and make sure everyone does the update through the proper helper.
This fixes a bug reported with the nvme revalidating disks during a hot removal operation, which can currently deadlock on bd_mutex.
Reported-by: Xianting Tian <xianting_tian@126.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Jens Axboe <axboe@kernel.dk>
|
/openbmc/linux/drivers/md/ |
H A D | dm.c | diff c2b4bb8cb3741c0bacf3683e4c1ecd04c977ada3 Sun Aug 23 04:10:42 CDT 2020 Christoph Hellwig <hch@lst.de> block: fix locking for struct block_device size updates
Two different callers use two different mutexes for updating the block device size, which obviously doesn't help to actually protect against concurrent updates from the different callers. In addition one of the locks, bd_mutex is rather prone to deadlocks with other parts of the block stack that use it for high level synchronization.
Switch to using a new spinlock protecting just the size updates, as that is all we need, and make sure everyone does the update through the proper helper.
This fixes a bug reported with the nvme revalidating disks during a hot removal operation, which can currently deadlock on bd_mutex.
Reported-by: Xianting Tian <xianting_tian@126.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Jens Axboe <axboe@kernel.dk>
|