[LU-4000] Fix build failure on ppc64 w/ 64k pages Created: 24/Sep/13 Updated: 10/Jan/17 Resolved: 10/Jan/17 |
|
| Status: | Closed |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.10.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Jeff Mahoney | Assignee: | James A Simmons |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | patch | ||
| Issue Links: |
|
||||||||
| Severity: | 3 | ||||||||
| Rank (Obsolete): | 10710 | ||||||||
| Description |
|
lloop fails to build on ppc64 with 64k pages due to the block layer API that limits the logical block size to sizes representable with an unsigned short. The logical block size shouldn't be set to the page size since that will force any file systems on that loop device to also require a 64k page size. |
| Comments |
| Comment by Jeff Mahoney [ 24/Sep/13 ] |
|
Fix here: http://review.whamcloud.com/7745 |
| Comment by Peter Jones [ 24/Sep/13 ] |
|
Thanks Jeff! Minh Could you please take care of this patch? Thanks Peter |
| Comment by Jodi Levi (Inactive) [ 27/Sep/13 ] |
|
Patch landed to Master. |
| Comment by Jinshan Xiong (Inactive) [ 25/Oct/13 ] |
|
This patch broke loop device as follows:
We have to revert this patch or make a new fix. |
| Comment by Jeff Mahoney [ 28/Oct/13 ] |
|
Ah, ok. It looks like my fix was incomplete. Those assertions essentially back up the ones made by the build assertion my patch removed. My initial analysis of where the logical block size is used missed the directio case. I expect that's where these split bios are coming from. So, those two BUG_ONs need to be removed to avoid the Oops. The original fix should probably be changed to use min(PAGE_SIZE, 32768) to keep the original lloop performance, at least until the size of the logical_block_size queue limit variable is increased (if that happens). |
| Comment by Jeff Mahoney [ 29/Oct/13 ] |
|
Updated but untested fix here: http://review.whamcloud.com/8096 |
| Comment by James A Simmons [ 10/Jan/17 ] |
|
The llite_lloop back device is no longer supported so this can be closed. |