[LU-9814] prealloc table change don't work after 2.10 upgrade Created: 01/Aug/17 Updated: 26/Oct/17 Resolved: 24/Oct/17 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.10.0 |
| Fix Version/s: | Lustre 2.11.0, Lustre 2.10.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexey Lyashkov | Assignee: | Zhenyu Xu |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
RHEL 7.2 |
||
| Issue Links: |
|
||||||||
| Severity: | 3 | ||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||
| Description |
|
| Comments |
| Comment by James Nunez (Inactive) [ 03/Aug/17 ] |
|
What version of Lustre are you upgrading from? |
| Comment by Alexey Lyashkov [ 03/Aug/17 ] |
|
It test system upgrade from IEEL 3. if one chunk was reverted --- ldiskfs/mballoc.c 2017-08-01 05:41:12.711164350 -0700 +++ /usr/src/lustre/2.10.0/ldiskfs/mballoc.c 2017-08-01 05:44:25.782155391 -0700 @@ -2357,20 +2357,16 @@ num = 0; cur = str; end = str + cnt; - while (cur < end) { - int rc; - while ((cur < end) && (*cur == ' ')) - cur++; - rc = kstrtol(cur, 0, &value); - if (rc != 0) - return -EINVAL; - if (value == 0) - break; - if (value <= prev) - return -EINVAL; - prev = value; - num++; - } + while ((cur < end) && (*cur == ' ')) cur++; + value = simple_strtol(cur, &cur, 0); + if (value == 0) + break; + if (value <= prev) + return -EINVAL; + prev = value; + num++; + } + new_table = kmalloc(num * sizeof(*new_table), GFP_KERNEL); if (new_table == NULL) it will be work again. |
| Comment by Peter Jones [ 03/Aug/17 ] |
|
Bobijam Could you please advise? Thanks Peter |
| Comment by Alexey Lyashkov [ 03/Aug/17 ] |
|
btw. patch in |
| Comment by Gerrit Updater [ 15/Aug/17 ] |
|
Yang Sheng (yang.sheng@intel.com) uploaded a new patch: https://review.whamcloud.com/28553 |
| Comment by Peter Jones [ 18/Sep/17 ] |
|
Alexey Does this patch work from your point of view? Peter |
| Comment by Brad Hoagland (Inactive) [ 14/Oct/17 ] |
|
Hi shadow, Do you have any updates on the patch? Thanks, Brad |
| Comment by Gerrit Updater [ 24/Oct/17 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/28553/ |
| Comment by Peter Jones [ 24/Oct/17 ] |
|
Landed for 2.11 |
| Comment by Gerrit Updater [ 24/Oct/17 ] |
|
Minh Diep (minh.diep@intel.com) uploaded a new patch: https://review.whamcloud.com/29733 |
| Comment by Gerrit Updater [ 26/Oct/17 ] |
|
John L. Hammond (john.hammond@intel.com) merged in patch https://review.whamcloud.com/29733/ |