https://github.com/torvalds/linux
Revision 54b0d127696aba2ef1ec5430301c968ab539fa0d authored by Neil Brown on 07 January 2009, 07:55:39 UTC, committed by Jens Axboe on 09 January 2009, 20:46:13 UTC
Neil writes:

   Hi Jens,

    I've found a little bug for you.  It was introduced by
        a6f23657d3072bde6844055bbc2290e497f33fbc

        block: add one-hit cache for disk partition lookup

    and has the effect of killing my machine whenever I try to assemble
    an md array :-(
    One of the devices in the array has partitions, and mdadm always
    deletes partitions before putting a whole-device in an array (as it
    can cause confusion).  The next IO to that device locks the machine.
    I don't really understand exactly why it locks up, but it happens in
    disk_map_sector_rcu().  This patch fixes it.

Which is due to a missing clear of the (now) stale partition lookup
data. So clear that when we delete a partition.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
1 parent 2150edc
History
Tip revision: 54b0d127696aba2ef1ec5430301c968ab539fa0d authored by Neil Brown on 07 January 2009, 07:55:39 UTC
block: fix bug in ptbl lookup cache
Tip revision: 54b0d12
File Mode Size
Kconfig -rw-r--r-- 2.3 KB
Makefile -rw-r--r-- 301 bytes
xfrm_algo.c -rw-r--r-- 14.2 KB
xfrm_hash.c -rw-r--r-- 806 bytes
xfrm_hash.h -rw-r--r-- 2.9 KB
xfrm_input.c -rw-r--r-- 6.0 KB
xfrm_ipcomp.c -rw-r--r-- 7.6 KB
xfrm_output.c -rw-r--r-- 4.4 KB
xfrm_policy.c -rw-r--r-- 66.5 KB
xfrm_proc.c -rw-r--r-- 3.0 KB
xfrm_state.c -rw-r--r-- 53.6 KB
xfrm_sysctl.c -rw-r--r-- 1.8 KB
xfrm_user.c -rw-r--r-- 61.3 KB

back to top