1. 27 11月, 2007 1 次提交
    • A
      blktrace: Make sure BLKTRACETEARDOWN does the full cleanup. · 35fc51e7
      Aneesh Kumar K.V 提交于
      if blktrace program segfault it will not be able
      to call BLKTRACETEARDOWN. Now if we run the blktrace
      again that would result in a failure to create the
      block/<device> debugfs directory.This will result
      in blk_remove_root() to be called which will set
      blk_tree_root to NULL. But the  debugfs block dir
      still exist because it contain subdirectory.
      
      Now if we try to fix it using BLKTRACETEARDOWN
      it won't work because blk_tree_root is NULL.
      
      Fix the same.
      
      Tested as below
      
      root@qemu-image:/home/kvaneesh/blktrace# ./blktrace  -d /dev/hdc
      Segmentation fault
      root@qemu-image:/home/kvaneesh/blktrace# ./blktrace  -d /dev/hdc
      BLKTRACESETUP: No such file or directory
      Failed to start trace on /dev/hdc
      root@qemu-image:/home/kvaneesh/blktrace# ./blktrace  -k /dev/hdc
      root@qemu-image:/home/kvaneesh/blktrace# ./blktrace  -d /dev/hdc
      Signed-off-by: NAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      35fc51e7
  2. 09 11月, 2007 2 次提交
  3. 07 11月, 2007 3 次提交
  4. 02 11月, 2007 5 次提交
  5. 29 10月, 2007 7 次提交
  6. 24 10月, 2007 1 次提交
  7. 23 10月, 2007 3 次提交
  8. 20 10月, 2007 3 次提交
  9. 18 10月, 2007 1 次提交
  10. 17 10月, 2007 4 次提交
  11. 16 10月, 2007 8 次提交
  12. 13 10月, 2007 2 次提交