problem is same as bug https://bugzilla.redhat.com/show_bug.cgi?id=495858, but this is for EL5.
Created attachment 339654 [details] show_partition() oops fix patch. the patch fixes the oops. it's based on kernel 2.6.18-128 please have it included in next release.
*** Bug 507758 has been marked as a duplicate of this bug. ***
Created attachment 351271 [details] Protect the per-gendisk partition array with rcu This is basically the same patch, but protecting /proc/diskstats accesses with rcu as well.
I ran the above patch through the following test for 16 hours or so without failure: # while true; do cat /proc/diskstats > /dev/null; done & # while true; do cat /proc/partitions > /dev/null; done & # while true; do hdparm -z /dev/sdd; done Prior to the patch, I could get a failure within seconds.
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.
in kernel-2.6.18-158.el5 You can download this test kernel from http://people.redhat.com/dzickus/el5 Please do NOT transition this bugzilla state to VERIFIED until our QE team has sent specific instructions indicating when to do so. However feel free to provide a comment indicating that this fix has been verified.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2009-1243.html