Merge remote-tracking branch 'jens/for-4.2/core' into dm-4.2
authorMike Snitzer <snitzer@redhat.com>
Fri, 29 May 2015 18:17:16 +0000 (14:17 -0400)
committerMike Snitzer <snitzer@redhat.com>
Fri, 29 May 2015 18:17:16 +0000 (14:17 -0400)
1  2 
block/blk-core.c
block/blk-mq.c
block/bounce.c
drivers/md/dm-table.c
drivers/md/dm.c
fs/btrfs/extent_io.c
fs/btrfs/volumes.c
include/linux/blk_types.h
include/linux/blkdev.h

Simple merge
diff --cc block/blk-mq.c
Simple merge
diff --cc block/bounce.c
Simple merge
Simple merge
diff --cc drivers/md/dm.c
index 2caf492890d64b27a0a88f24f4f04d1778448d9a,38837f8ea3279c722cc0a929085e845357825149..4d6f089a0e9e2eca5b8fa58017a29e1da598c2a0
@@@ -1087,8 -1036,8 +1036,6 @@@ static void free_rq_clone(struct reques
        struct dm_rq_target_io *tio = clone->end_io_data;
        struct mapped_device *md = tio->md;
  
-       blk_rq_unprep_clone(clone);
 -      WARN_ON_ONCE(must_be_mapped && !clone->q);
--
        if (md->type == DM_TYPE_MQ_REQUEST_BASED)
                /* stacked on blk-mq queue(s) */
                tio->ti->type->release_clone_rq(clone);
@@@ -1977,13 -1887,9 +1893,9 @@@ static int map_request(struct dm_rq_tar
                        dm_kill_unmapped_request(rq, r);
                        return r;
                }
 -              if (IS_ERR(clone))
 -                      return DM_MAPIO_REQUEUE;
 +              if (r != DM_MAPIO_REMAPPED)
 +                      return r;
-               if (setup_clone(clone, rq, tio, GFP_ATOMIC)) {
-                       /* -ENOMEM */
-                       ti->type->release_clone_rq(clone);
-                       return DM_MAPIO_REQUEUE;
-               }
+               setup_clone(clone, rq, tio);
        }
  
        switch (r) {
Simple merge
Simple merge
Simple merge
Simple merge