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:
Brian Behlendorf 2013-07-10 14:09:08 -07:00
parent ff3510c1a5
commit abc41ac7c7
1 changed files with 1 additions and 1 deletions

View File

@ -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;