mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-13 11:40:25 +03:00
Use GFP_NOIO in vdev_disk_io_flush()
To avoid a potential deadlock when using a zvol as a swap device prevent vdev_disk_io_flush() from performing IO during the bio_alloc(). Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #1508
This commit is contained in:
parent
ff3510c1a5
commit
abc41ac7c7
@ -632,7 +632,7 @@ vdev_disk_io_flush(struct block_device *bdev, zio_t *zio)
|
|||||||
if (!q)
|
if (!q)
|
||||||
return ENXIO;
|
return ENXIO;
|
||||||
|
|
||||||
bio = bio_alloc(GFP_KERNEL, 0);
|
bio = bio_alloc(GFP_NOIO, 0);
|
||||||
if (!bio)
|
if (!bio)
|
||||||
return ENOMEM;
|
return ENOMEM;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user