1. 15 4月, 2006 1 次提交
    • N
      [PATCH] sysfs: Allow sysfs attribute files to be pollable · 4508a7a7
      NeilBrown 提交于
      It works like this:
        Open the file
        Read all the contents.
        Call poll requesting POLLERR or POLLPRI (so select/exceptfds works)
        When poll returns,
           close the file and go to top of loop.
         or lseek to start of file and go back to the 'read'.
      
      Events are signaled by an object manager calling
         sysfs_notify(kobj, dir, attr);
      
      If the dir is non-NULL, it is used to find a subdirectory which
      contains the attribute (presumably created by sysfs_create_group).
      
      This has a cost of one int  per attribute, one wait_queuehead per kobject,
      one int per open file.
      
      The name "sysfs_notify" may be confused with the inotify
      functionality.  Maybe it would be nice to support inotify for sysfs
      attributes as well?
      
      This patch also uses sysfs_notify to allow /sys/block/md*/md/sync_action
      to be pollable
      Signed-off-by: NNeil Brown <neilb@suse.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      4508a7a7
  2. 11 4月, 2006 1 次提交
    • N
      [PATCH] md: make sure 64bit fields in version-1 metadata are 64-bit aligned · 6f91fe88
      NeilBrown 提交于
      reshape_position is a 64bit field that was not 64bit aligned.  So swap with
      new_level.
      
      NOTE: this is a user-visible change.  However:
        - The bad code has not appeared in a released kernel
        - This code is still marked 'experimental'
        - This only affects version-1 superblock, which are not in wide use
        - These field are only used (rather than simply reported) by user-space
          tools in extemely rare circumstances : after a reshape crashes in the
          first second of the reshape process.
      
      So I believe that, at this stage, the change is safe.  Especially if people
      heed the 'help' message on use mdadm-2.4.1.
      Signed-off-by: NNeil Brown <neilb@suse.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      6f91fe88
  3. 02 4月, 2006 3 次提交
  4. 01 4月, 2006 5 次提交
  5. 28 3月, 2006 30 次提交