linux/drivers/block/aoe
Christoph Hellwig 8a6f7bbf29 aoe: don't call set_capacity from irq context
Updating the block device size from irq context can lead to torn
writes of the 64-bit value, and prevents us from using normal
process context locking primitives to serialize access to the 64-bit
nr_sectors value.  Defer the set_capacity to the already existing
workqueue handler, where it can be merged with the update of the
block device size by using set_capacity_and_notify.  As an extra
bonus this also adds proper uevent notifications for the resize.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-11-16 08:34:14 -07:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
aoe.h aoe: replace ->special use with private data in the request 2018-11-10 08:03:49 -07:00
aoeblk.c block: lift setting the readahead size into the block layer 2020-09-24 13:43:39 -06:00
aoechr.c aoe: replace kmalloc and then memcpy with kmemdup 2013-04-30 17:04:08 -07:00
aoecmd.c aoe: don't call set_capacity from irq context 2020-11-16 08:34:14 -07:00
aoedev.c block: aoe: Fix kernel crash due to atomic sleep when exiting 2019-08-08 07:29:02 -06:00
aoemain.c aoe: add __exit annotation 2018-12-16 09:01:38 -07:00
aoenet.c aoe: update copyright date 2013-07-03 16:08:05 -07:00