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)
|
||||
return ENXIO;
|
||||
|
||||
bio = bio_alloc(GFP_KERNEL, 0);
|
||||
bio = bio_alloc(GFP_NOIO, 0);
|
||||
if (!bio)
|
||||
return ENOMEM;
|
||||
|
||||
|
|
Loading…
Reference in New Issue