Revert upstream commit 1c220c69ce to fix i686 booting (rhbz 1247382)
This commit is contained in:
parent
c3cd2b9025
commit
c25d6c075d
55
0001-Revert-dm-fix-casting-bug-in-dm_merge_bvec.patch
Normal file
55
0001-Revert-dm-fix-casting-bug-in-dm_merge_bvec.patch
Normal file
@ -0,0 +1,55 @@
|
||||
From ee8289a2953c2d345c7d56f77e93edc18f4b7ad9 Mon Sep 17 00:00:00 2001
|
||||
From: Josh Boyer <jwboyer@fedoraproject.org>
|
||||
Date: Fri, 31 Jul 2015 15:26:05 -0400
|
||||
Subject: [PATCH] Revert "dm: fix casting bug in dm_merge_bvec()"
|
||||
|
||||
This reverts commit 1c220c69ce0dcc0f234a9f263ad9c0864f971852.
|
||||
---
|
||||
drivers/md/dm.c | 17 +++++------------
|
||||
1 file changed, 5 insertions(+), 12 deletions(-)
|
||||
|
||||
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
|
||||
index ab37ae114e94..bd5ad54919ab 100644
|
||||
--- a/drivers/md/dm.c
|
||||
+++ b/drivers/md/dm.c
|
||||
@@ -1729,7 +1729,8 @@ static int dm_merge_bvec(struct request_queue *q,
|
||||
struct mapped_device *md = q->queuedata;
|
||||
struct dm_table *map = dm_get_live_table_fast(md);
|
||||
struct dm_target *ti;
|
||||
- sector_t max_sectors, max_size = 0;
|
||||
+ sector_t max_sectors;
|
||||
+ int max_size = 0;
|
||||
|
||||
if (unlikely(!map))
|
||||
goto out;
|
||||
@@ -1744,16 +1745,8 @@ static int dm_merge_bvec(struct request_queue *q,
|
||||
max_sectors = min(max_io_len(bvm->bi_sector, ti),
|
||||
(sector_t) queue_max_sectors(q));
|
||||
max_size = (max_sectors << SECTOR_SHIFT) - bvm->bi_size;
|
||||
-
|
||||
- /*
|
||||
- * FIXME: this stop-gap fix _must_ be cleaned up (by passing a sector_t
|
||||
- * to the targets' merge function since it holds sectors not bytes).
|
||||
- * Just doing this as an interim fix for stable@ because the more
|
||||
- * comprehensive cleanup of switching to sector_t will impact every
|
||||
- * DM target that implements a ->merge hook.
|
||||
- */
|
||||
- if (max_size > INT_MAX)
|
||||
- max_size = INT_MAX;
|
||||
+ if (unlikely(max_size < 0)) /* this shouldn't _ever_ happen */
|
||||
+ max_size = 0;
|
||||
|
||||
/*
|
||||
* merge_bvec_fn() returns number of bytes
|
||||
@@ -1761,7 +1754,7 @@ static int dm_merge_bvec(struct request_queue *q,
|
||||
* max is precomputed maximal io size
|
||||
*/
|
||||
if (max_size && ti->type->merge)
|
||||
- max_size = ti->type->merge(ti, bvm, biovec, (int) max_size);
|
||||
+ max_size = ti->type->merge(ti, bvm, biovec, max_size);
|
||||
/*
|
||||
* If the target doesn't support merge method and some of the devices
|
||||
* provided their merge_bvec method (we know this by looking for the
|
||||
--
|
||||
2.4.3
|
||||
|
@ -22,7 +22,7 @@ Summary: The Linux kernel
|
||||
%global zipsed -e 's/\.ko$/\.ko.xz/'
|
||||
%endif
|
||||
|
||||
# % define buildid .local
|
||||
# define buildid .local
|
||||
|
||||
# baserelease defines which build revision of this kernel version we're
|
||||
# building. We used to call this fedora_build, but the magical name
|
||||
@ -582,6 +582,8 @@ Patch502: firmware-Drop-WARN-from-usermodehelper_read_trylock-.patch
|
||||
|
||||
Patch503: drm-i915-turn-off-wc-mmaps.patch
|
||||
|
||||
Patch505: 0001-Revert-dm-fix-casting-bug-in-dm_merge_bvec.patch
|
||||
|
||||
Patch904: kdbus.patch
|
||||
|
||||
# END OF PATCH DEFINITIONS
|
||||
@ -2019,6 +2021,9 @@ fi
|
||||
#
|
||||
#
|
||||
%changelog
|
||||
* Mon Aug 03 2015 Josh Boyer <jwboyer@fedoraproject.org>
|
||||
- Revert upstream commit 1c220c69ce to fix i686 booting (rhbz 1247382)
|
||||
|
||||
* Fri Jul 31 2015 Josh Boyer <jwboyer@fedoraproject.org> - 4.2.0-0.rc4.git4.1
|
||||
- Linux v4.2-rc4-111-g8400935737bf
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user