1. 27 11月, 2012 6 次提交
  2. 24 11月, 2012 3 次提交
  3. 23 11月, 2012 10 次提交
  4. 22 11月, 2012 10 次提交
  5. 21 11月, 2012 8 次提交
  6. 20 11月, 2012 3 次提交
    • N
      md/raid5: round discard alignment up to power of 2. · 4ac6875e
      NeilBrown 提交于
      blkdev_issue_discard currently assumes that the granularity
      is a power of 2.  So in raid5, round the chosen number up to
      avoid embarrassment.
      
      Cc: Shaohua Li <shli@kernel.org>
      Signed-off-by: NNeilBrown <neilb@suse.de>
      4ac6875e
    • S
      of/net/mdio-gpio: Fix pdev->id issue when using devicetrees. · 3272dd9b
      Srinivas Kandagatla 提交于
      When the mdio-gpio driver is probed via device trees, the platform
      device id is set as -1, However the pdev->id is re-used as bus-id for
      while creating mdio gpio bus.
      So
      For device tree case the mdio-gpio bus name appears as "gpio-ffffffff"
      where as
      for non-device tree case the bus name appears as "gpio-<bus-num>"
      
      Which means the bus_id is fixed in device tree case, so we can't have
      two mdio gpio buses via device trees. Assigning a logical bus number
      via device tree solves the problem and the bus name is much consistent
      with non-device tree bus name.
      
      Without this patch
      1. we can't support two mdio-gpio buses via device trees.
      2. we should always pass gpio-ffffffff as bus name to phy_connect, very
      different to non-device tree bus name.
      
      So, setting up the bus_id via aliases from device tree is the right
      solution and other drivers do similar thing.
      Signed-off-by: NSrinivas Kandagatla <srinivas.kandagatla@st.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3272dd9b
    • N
      md: make sure everything is freed when dm-raid stops an array. · 5eff3c43
      NeilBrown 提交于
      md_stop() would stop an array, but not free various attached
      data structures.
      For internal arrays, these are freed later in do_md_stop() or
      mddev_put(), but they don't apply for dm-raid arrays.
      So get md_stop() to free them, and only all it from dm-raid.
      For internal arrays we now call __md_stop.
      Reported-by: Nmajianpeng <majianpeng@gmail.com>
      Signed-off-by: NNeilBrown <neilb@suse.de>
      5eff3c43