Searched hist:"8 a6f7bbf29d1d61d3ff18f0a0feead9f287c9b14" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/block/aoe/ |
H A D | aoecmd.c | diff 8a6f7bbf29d1d61d3ff18f0a0feead9f287c9b14 Mon Nov 16 08:57:02 CST 2020 Christoph Hellwig <hch@lst.de> 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>
|