RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 646224 - cifs: properly disable fscache support
Summary: cifs: properly disable fscache support
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: kernel
Version: 6.1
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: rc
: ---
Assignee: Jeff Layton
QA Contact: Jian Li
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-10-25 01:05 UTC by Jeff Layton
Modified: 2014-03-04 00:06 UTC (History)
8 users (show)

Fixed In Version: kernel-2.6.32-160.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-06 12:34:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2011:1530 0 normal SHIPPED_LIVE Moderate: Red Hat Enterprise Linux 6 kernel security, bug fix and enhancement update 2011-12-06 01:45:35 UTC

Description Jeff Layton 2010-10-25 01:05:40 UTC
Add support for fs-cache in cifs. fs-cache support for cifs went upstream in 2.6.36. Backport it for rhel6.

Comment 1 RHEL Program Management 2010-11-18 18:19:44 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux maintenance release. Product Management has 
requested further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed 
products. This request is not yet committed for inclusion in an Update release.

Comment 2 Jeff Layton 2010-11-23 19:09:09 UTC
I've started going over the fscache code in detail for the backport and have noticed some significant bugs in its implementation -- enough that I'm not comfortable turning this support on in 6.1. I'm going to push this bug out to 6.2, and work with Suresh to clean the code up.

I think we'll probably still want to take most of the fscache patches for 6.1, but plan to leave the Kconfig option disabled. Luckily most of the code gets compiled out to a no-op when it's disabled. That'll allow us to more easily merge bugfixes that depend on the changes in those patches without turning on support for it until it's ready.

I'll plan to pull in most of those patches in the set for bug 651865, and then leave this bug open to pull in the fixes and enable the kconfig option.

Comment 3 RHEL Program Management 2011-05-26 14:49:48 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux maintenance release. Product Management has 
requested further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed 
products. This request is not yet committed for inclusion in an Update release.

Comment 4 Jeff Layton 2011-06-07 18:45:08 UTC
Testing with a backport of the upstream code and then later the upstream code exposed at least one trivially reproducible oops when fsc is used. Based on that, I'm pulling the plug on this feature in RHEL6. Upstream discussion of this particular problem is here:

    http://article.gmane.org/gmane.linux.kernel.cifs/3466

We can reevaluate this feature for RHEL7 if there is demand for it.

Comment 5 Jeff Layton 2011-06-07 19:09:08 UTC
Actually...there are some patches we need to take in in order to make sure that fscache is clearly disabled. Right now, if you specify -o fsc, the option is just ignored. We need to make sure that if someone specifies that, that the mount errors out properly. So, I'll convert this over to a bug to ensure that those patches go in.

Comment 6 Jeff Layton 2011-06-08 11:43:48 UTC
How to test:

Attempt to mount a server with the '-o fsc' option. For instance:

    # mount //cifs-server.devel.redhat.com/export /mnt/cifs -o fsc

...assuming that the mount works without the fsc option, it will also succeed on RHEL6.1 with that option even though CONFIG_CIFS_FSCACHE is disabled. With the patches for this bug, you'll get a EINVAL error on the mount attempt and there will be a log message like this in dmesg:

    CIFS VFS: FS-Cache support needs CONFIG_CIFS_FSCACHE kernel config option set

Comment 8 Aristeu Rozanski 2011-06-27 19:04:17 UTC
Patch(es) available on kernel-2.6.32-160.el6

Comment 11 Jian Li 2011-08-11 08:56:50 UTC
The bug is verified, details is list below:


[root@hp-ml370g5-01 statd]# uname -a
Linux hp-ml370g5-01.rhts.eng.bos.redhat.com 2.6.32-178.el6.x86_64 #1 SMP Wed Aug 3 10:43:13 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
[root@hp-ml370g5-01 statd]# rpm -q cifs-utils
cifs-utils-4.8.1-5.el6.x86_64
[root@hp-ml370g5-01 statd]# mount.cifs //dell-pesc1420-01.rhts.eng.bos.redhat.com/test /mnt/test -o user=root,password=redhat,fsc
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
[root@hp-ml370g5-01 statd]# dmesg | tail
**snip**
CIFS VFS: FS-Cache support needs CONFIG_CIFS_FSCACHE kernel config option set
CIFS VFS: cifs_mount failed w/return code = -22

Comment 12 errata-xmlrpc 2011-12-06 12:34:55 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2011-1530.html


Note You need to log in before you can comment on or make changes to this bug.