From 7b63326b2a43f0f610a8290ed8e8f4b5ca393302 Mon Sep 17 00:00:00 2001 From: Ed Cashin Date: Thu, 10 Sep 2009 22:30:47 +0200 Subject: [PATCH] --- yaml --- r: 161221 b: refs/heads/master c: 18d8217bc441630c3c5ec7416c5a65c69e8a0979 h: refs/heads/master i: 161219: ddcf146950dfff8bf39b3b269774d01906e579a1 v: v3 --- [refs] | 2 +- trunk/drivers/block/aoe/aoeblk.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 560c91e3f8d6..04c442787e7f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 01edede41e352e4879a89cdc5468f72ffc89b713 +refs/heads/master: 18d8217bc441630c3c5ec7416c5a65c69e8a0979 diff --git a/trunk/drivers/block/aoe/aoeblk.c b/trunk/drivers/block/aoe/aoeblk.c index 1e15889c4b98..bf7ceba18788 100644 --- a/trunk/drivers/block/aoe/aoeblk.c +++ b/trunk/drivers/block/aoe/aoeblk.c @@ -172,6 +172,9 @@ aoeblk_make_request(struct request_queue *q, struct bio *bio) BUG(); bio_endio(bio, -ENXIO); return 0; + } else if (bio_rw_flagged(bio, BIO_RW_BARRIER)) { + bio_endio(bio, -EOPNOTSUPP); + return 0; } else if (bio->bi_io_vec == NULL) { printk(KERN_ERR "aoe: bi_io_vec is NULL\n"); BUG();