[PATCH 06/10] use GFP_NOIO in dm rdac

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Mike Christie <michaelc@xxxxxxxxxxx>

The pg_init path needs to be GFP_NOIO since it used
to failover a deviec and we cannot end up calling
back into the device.

Signed-off-by: Mike Christie <michaelc@xxxxxxxxxxx>
---
 drivers/md/dm-mpath-rdac.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/md/dm-mpath-rdac.c b/drivers/md/dm-mpath-rdac.c
index 9e71e0e..bb8ce6d 100644
--- a/drivers/md/dm-mpath-rdac.c
+++ b/drivers/md/dm-mpath-rdac.c
@@ -271,7 +271,7 @@ static struct request *get_rdac_req(struct rdac_handler *h,
 	struct request *rq;
 	struct request_queue *q = bdev_get_queue(h->path->dev->bdev);
 
-	rq = blk_get_request(q, rw, GFP_KERNEL);
+	rq = blk_get_request(q, rw, GFP_NOIO);
 
 	if (!rq) {
 		DMINFO("get_rdac_req: blk_get_request failed");
@@ -279,7 +279,7 @@ static struct request *get_rdac_req(struct rdac_handler *h,
 	}
 
 	if (buflen && blk_rq_map_kern(NULL, q, rq, buffer, buflen,
-				      GFP_KERNEL)) {
+				      GFP_NOIO)) {
 		blk_put_request(rq);
 		DMINFO("get_rdac_req: blk_rq_map_kern failed");
 		return NULL;
-- 
1.5.1.2

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux