[LU-1116] support rhel6.2 patchless client on 1.8.x Created: 17/Feb/12 Updated: 09/May/12 Resolved: 09/May/12 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 1.8.7 |
| Fix Version/s: | Lustre 1.8.8 |
| Type: | Improvement | Priority: | Minor |
| Reporter: | Shuichi Ihara (Inactive) | Assignee: | Yang Sheng |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
| Rank (Obsolete): | 9737 |
| Description |
|
RHEL6.2 pathcless client needs to be supported on 1.8.x. Intel and AMD CPU based server requires rhel6.2's kernel to support full functions and performance. The master branch supports for this distribution, so at least we need backport the following patches from master branch, and one code change for the patchless client.
On rhel6.2's kenrel, an function name roundup() in include/linux/kernel.h was changed to round_up() which is duplicated what the lustre used in lustre/mdc/mdc_locks.c. --- a/lustre/mdc/mdc_locks.c 2012-01-12 15:54:32.731336048 +0100
+++ b/lustre/mdc/mdc_locks.c 2012-01-12 15:54:46.072345471 +0100
@@ -185,7 +185,7 @@
}
}
-static int round_up(int val)
+static int lu_round_up(int val)
{
int ret = 1;
while (val) {
@@ -301,7 +301,7 @@
rc = lustre_msg_size(class_exp2cliimp(exp)->imp_msg_magic,
bufcount, size);
if (rc & (rc - 1))
- size[bufcount - 1] = min(size[bufcount - 1] + round_up(rc) - rc,
+ size[bufcount - 1] = min(size[bufcount - 1] + lu_round_up(rc) - rc,
(__u32)obddev->u.cli.cl_max_mds_easize);
/* If inode is known, cancel conflicting OPEN locks. */
|
| Comments |
| Comment by Pak Lui [ 18/Feb/12 ] |
|
I also experienced the same issue. Thanks for filing the bug report. I am using the v1_8_7_WC1. |
| Comment by Shuichi Ihara (Inactive) [ 19/Feb/12 ] |
|
my tested a patchset of checkout v1_8_7_WC1 branch and applied patch, then ran "sh ./autogen.sh; ./configure --enable-dist; make dist" |
| Comment by Kent Engström (Inactive) [ 20/Feb/12 ] |
|
I tested building a patchless client for 2.6.32-220.4.2.el6.x86_64 (CentOS 6.2) using the |
| Comment by Peter Jones [ 20/Feb/12 ] |
|
Yangsheng Could you please look into what is involved here? Thanks Peter |
| Comment by Build Master (Inactive) [ 22/Feb/12 ] |
|
Integrated in Result = SUCCESS
|
| Comment by Build Master (Inactive) [ 22/Feb/12 ] |
|
Integrated in Result = SUCCESS
|
| Comment by Build Master (Inactive) [ 22/Feb/12 ] |
|
Integrated in Result = SUCCESS
|
| Comment by Build Master (Inactive) [ 22/Feb/12 ] |
|
Integrated in Result = SUCCESS
|
| Comment by Build Master (Inactive) [ 22/Feb/12 ] |
|
Integrated in Result = SUCCESS
|
| Comment by Build Master (Inactive) [ 22/Feb/12 ] |
|
Integrated in Result = SUCCESS
|
| Comment by Build Master (Inactive) [ 22/Feb/12 ] |
|
Integrated in Result = SUCCESS
|
| Comment by Build Master (Inactive) [ 22/Feb/12 ] |
|
Integrated in Result = SUCCESS
|
| Comment by Build Master (Inactive) [ 22/Feb/12 ] |
|
Integrated in Result = SUCCESS
|
| Comment by Build Master (Inactive) [ 22/Feb/12 ] |
|
Integrated in Result = SUCCESS
|
| Comment by Build Master (Inactive) [ 22/Feb/12 ] |
|
Integrated in Result = SUCCESS
|
| Comment by Yang Sheng [ 24/Feb/12 ] |
|
Patch landed. |