Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 582994 Details for
Bug 758202
pNFS read crashes when mounting with rsize < 4096
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
NFSv4.1 fix page number calculation bug for filelayout decode buffers
0001-NFSv4.1-fix-page-number-calculation-bug-for-filelayo.patch (text/plain), 1.48 KB, created by
Andy Adamson
on 2012-05-08 13:52:38 UTC
(
hide
)
Description:
NFSv4.1 fix page number calculation bug for filelayout decode buffers
Filename:
MIME Type:
Creator:
Andy Adamson
Created:
2012-05-08 13:52:38 UTC
Size:
1.48 KB
patch
obsolete
>From e5265a0c587423bbd21a6b39a572cecff16b9346 Mon Sep 17 00:00:00 2001 >From: Andy Adamson <andros@netapp.com> >Date: Sat, 14 Apr 2012 03:56:35 -0400 >Subject: [PATCH] NFSv4.1 fix page number calculation bug for filelayout > decode buffers > >Signed-off-by: Andy Adamson <andros@netapp.com> >Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com> >--- > fs/nfs/nfs4filelayoutdev.c | 2 +- > fs/nfs/pnfs.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/fs/nfs/nfs4filelayoutdev.c b/fs/nfs/nfs4filelayoutdev.c >index a866bbd..c9cff9a 100644 >--- a/fs/nfs/nfs4filelayoutdev.c >+++ b/fs/nfs/nfs4filelayoutdev.c >@@ -699,7 +699,7 @@ get_device_info(struct inode *inode, struct nfs4_deviceid *dev_id, gfp_t gfp_fla > * GETDEVICEINFO's maxcount > */ > max_resp_sz = server->nfs_client->cl_session->fc_attrs.max_resp_sz; >- max_pages = max_resp_sz >> PAGE_SHIFT; >+ max_pages = nfs_page_array_len(0, max_resp_sz); > dprintk("%s inode %p max_resp_sz %u max_pages %d\n", > __func__, inode, max_resp_sz, max_pages); > >diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c >index b5d4515..38512bc 100644 >--- a/fs/nfs/pnfs.c >+++ b/fs/nfs/pnfs.c >@@ -587,7 +587,7 @@ send_layoutget(struct pnfs_layout_hdr *lo, > > /* allocate pages for xdr post processing */ > max_resp_sz = server->nfs_client->cl_session->fc_attrs.max_resp_sz; >- max_pages = max_resp_sz >> PAGE_SHIFT; >+ max_pages = nfs_page_array_len(0, max_resp_sz); > > pages = kcalloc(max_pages, sizeof(struct page *), gfp_flags); > if (!pages) >-- >1.7.6.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 758202
: 582994 |
583024