1. 25 9月, 2006 24 次提交
    • M
      ocfs2: Add ->check_downconvert callback in dlmglue · 16d5b956
      Mark Fasheh 提交于
      This will allow lock types to force a requeue of a lock downconvert.
      Signed-off-by: NMark Fasheh <mark.fasheh@oracle.com>
      16d5b956
    • M
      ocfs2: Check for refreshing locks in generic unblock function · f7fbfdd1
      Mark Fasheh 提交于
      Tidy up the exit path a bit too.
      Signed-off-by: NMark Fasheh <mark.fasheh@oracle.com>
      f7fbfdd1
    • M
      ocfs2: don't unconditionally pass LVB flags · b80fc012
      Mark Fasheh 提交于
      Allow a lock type to specifiy whether it makes use of the LVB. The only type
      which does this right now is the meta data lock. This should save us some
      space on network messages since they won't have to needlessly transmit value
      blocks.
      Signed-off-by: NMark Fasheh <mark.fasheh@oracle.com>
      b80fc012
    • M
      ocfs2: combine inode and generic blocking AST functions · aa2623ad
      Mark Fasheh 提交于
      There is extremely little difference between the two now. We can remove the
      callback from ocfs2_lock_res_ops as well.
      Signed-off-by: NMark Fasheh <mark.fasheh@oracle.com>
      aa2623ad
    • M
      ocfs2: Add ->get_osb() dlmglue locking operation · 54a7e755
      Mark Fasheh 提交于
      Will be used to find the ocfs2_super structure from a given lockres.
      Signed-off-by: NMark Fasheh <mark.fasheh@oracle.com>
      54a7e755
    • M
      ocfs2: remove ->unlock_ast() callback from ocfs2_lock_res_ops · 2a45f2d1
      Mark Fasheh 提交于
      This was always defined to the same function in all locks, so clean things
      up by removing and passing ocfs2_unlock_ast() directly to the DLM.
      Signed-off-by: NMark Fasheh <mark.fasheh@oracle.com>
      2a45f2d1
    • M
      ocfs2: combine inode and generic AST functions · e92d57df
      Mark Fasheh 提交于
      There is extremely little difference between the two now. We can remove the
      callback from ocfs2_lock_res_ops as well.
      Signed-off-by: NMark Fasheh <mark.fasheh@oracle.com>
      e92d57df
    • M
      ocfs2: Clean up lock resource refresh flags · f625c979
      Mark Fasheh 提交于
      Use of the refresh mechanism is lock-type wide, so move knowledge of that to
      the ocfs2_lock_res_ops structure.
      Signed-off-by: NMark Fasheh <mark.fasheh@oracle.com>
      f625c979
    • M
      ocfs2: Remove i_generation from inode lock names · 24c19ef4
      Mark Fasheh 提交于
      OCFS2 puts inode meta data in the "lock value block" provided by the DLM.
      Typically, i_generation is encoded in the lock name so that a deleted inode
      on and a new one in the same block don't share the same lvb.
      
      Unfortunately, that scheme means that the read in ocfs2_read_locked_inode()
      is potentially thrown away as soon as the meta data lock is taken - we
      cannot encode the lock name without first knowing i_generation, which
      requires a disk read.
      
      This patch encodes i_generation in the inode meta data lvb, and removes the
      value from the inode meta data lock name. This way, the read can be covered
      by a lock, and at the same time we can distinguish between an up to date and
      a stale LVB.
      
      This will help cold-cache stat(2) performance in particular.
      
      Since this patch changes the protocol version, we take the opportunity to do
      a minor re-organization of two of the LVB fields.
      Signed-off-by: NMark Fasheh <mark.fasheh@oracle.com>
      24c19ef4
    • M
      ocfs2: Encode i_generation in the meta data lvb · f9e2d82e
      Mark Fasheh 提交于
      When i_generation is removed from the lockname, this will help us determine
      whether a meta data lvb has information that is in sync with the local
      struct inode.
      Signed-off-by: NMark Fasheh <mark.fasheh@oracle.com>
      f9e2d82e
    • M
      ocfs2: Free up some space in the lvb · 4d3b83f7
      Mark Fasheh 提交于
      lvb_version doesn't need to be a whole 32 bits. Make it an 8 bit field to
      free up some space. This should be backwards compatible until we use one of
      the fields, in which case we'd bump the lvb version anyway.
      Signed-off-by: NMark Fasheh <mark.fasheh@oracle.com>
      4d3b83f7
    • M
      ocfs2: Remove special casing for inode creation in ocfs2_dentry_attach_lock() · 0027dd5b
      Mark Fasheh 提交于
      We can't use LKM_LOCAL for new dentry locks because an unlink and subsequent
      re-create of a name/inode pair may result in the lock still being mastered
      somewhere in the cluster.
      Signed-off-by: NMark Fasheh <mark.fasheh@oracle.com>
      0027dd5b
    • M
      ocfs2: manually d_move() during ocfs2_rename() · 1ba9da2f
      Mark Fasheh 提交于
      Make use of FS_RENAME_DOES_D_MOVE to avoid a race condition that can occur
      during ->rename() if we d_move() outside of the parent directory cluster
      locks, and another node discovers the new name (created during the rename)
      and unlinks it. d_move() will unconditionally rehash a dentry - which will
      leave stale data in the system.
      Signed-off-by: NMark Fasheh <mark.fasheh@oracle.com>
      1ba9da2f
    • M
      [PATCH] Allow file systems to manually d_move() inside of ->rename() · 349457cc
      Mark Fasheh 提交于
      Some file systems want to manually d_move() the dentries involved in a
      rename.  We can do this by making use of the FS_ODD_RENAME flag if we just
      have nfs_rename() unconditionally do the d_move().  While there, we rename
      the flag to be more descriptive.
      
      OCFS2 uses this to protect that part of the rename operation with a cluster
      lock.
      Signed-off-by: NMark Fasheh <mark.fasheh@oracle.com>
      Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Cc: Christoph Hellwig <hch@lst.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      349457cc
    • M
      ocfs2: Remove the dentry vote · 1390334b
      Mark Fasheh 提交于
      This is unused now.
      Signed-off-by: NMark Fasheh <mark.fasheh@oracle.com>
      1390334b
    • M
      ocfs2: Hook rest of the file system into dentry locking API · 379dfe9d
      Mark Fasheh 提交于
      Actually replace the vote calls with the new dentry operations. Make any
      necessary adjustments to get the scheme to work.
      Signed-off-by: NMark Fasheh <mark.fasheh@oracle.com>
      379dfe9d
    • M
      ocfs2: Add dentry tracking API · 80c05846
      Mark Fasheh 提交于
      Replace the dentry vote mechanism with a cluster lock which covers a set
      of dentries. This allows us to force d_delete() only on nodes which actually
      care about an unlink.
      
      Every node that does a ->lookup() gets a read only lock on the dentry, until
      an unlink during which the unlinking node, will request an exclusive lock,
      forcing the other nodes who care about that dentry to d_delete() it. The
      effect is that we retain a very lightweight ->d_revalidate(), and at the
      same time get to make large improvements to the average case performance of
      the ocfs2 unlink and rename operations.
      
      This patch adds the higher level API and the dentry manipulation code.
      Signed-off-by: NMark Fasheh <mark.fasheh@oracle.com>
      80c05846
    • M
      ocfs2: Add new cluster lock type · d680efe9
      Mark Fasheh 提交于
      Replace the dentry vote mechanism with a cluster lock which covers a set
      of dentries. This allows us to force d_delete() only on nodes which actually
      care about an unlink.
      
      Every node that does a ->lookup() gets a read only lock on the dentry, until
      an unlink during which the unlinking node, will request an exclusive lock,
      forcing the other nodes who care about that dentry to d_delete() it. The
      effect is that we retain a very lightweight ->d_revalidate(), and at the
      same time get to make large improvements to the average case performance of
      the ocfs2 unlink and rename operations.
      
      This patch adds the cluster lock type which OCFS2 can attach to
      dentries.  A small number of fs/ocfs2/dcache.c functions are stubbed
      out so that this change can compile.
      Signed-off-by: NMark Fasheh <mark.fasheh@oracle.com>
      d680efe9
    • M
      ocfs2: Update dlmglue for new dlmlock() API · f0681062
      Mark Fasheh 提交于
      File system lock names are very regular right now, so we really only need to
      pass an extra parameter to dlmlock().
      Signed-off-by: NMark Fasheh <mark.fasheh@oracle.com>
      f0681062
    • M
      ocfs2: Update dlmfs for new dlmlock() API · ea5b3a18
      Mark Fasheh 提交于
      We just need to add a namelen field to the user_lock_res structure, and
      update a few debug prints. Instead of updating all debug prints, I took the
      opportunity to remove a few that are likely unnecessary these days.
      Signed-off-by: NMark Fasheh <mark.fasheh@oracle.com>
      ea5b3a18
    • M
      ocfs2: Allow binary names in the DLM · 3384f3df
      Mark Fasheh 提交于
      The OCFS2 DLM uses strlen() to determine lock name length, which excludes
      the possibility of putting binary values in the name string. Fix this by
      requiring that string length be passed in as a parameter.
      Signed-off-by: NMark Fasheh <mark.fasheh@oracle.com>
      3384f3df
    • M
      ocfs2: Silence dlm error print · e2c73698
      Mark Fasheh 提交于
      An AST can be delivered via the network after a lock has been removed, so no
      need to print an error when we see that.
      Signed-off-by: NMark Fasheh <mark.fasheh@oracle.com>
      e2c73698
    • L
      Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev · a68aa1cc
      Linus Torvalds 提交于
      * 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev: (50 commits)
        [libata] Delete pata_it8172 driver
        [PATCH] libata: improve handling of diagostic fail (and hardware that misreports it)
        [PATCH] libata: fix non-uniform ports handling
        Fix libata resource conflict for legacy mode
        [libata] ata_piix: build fix
        [PATCH] pata_amd: Check enable bits on Nvidia
        [PATCH] Update SiS PATA
        [libata] Add pata_jmicron driver to Kconfig, Makefile
        [libata #pata-drivers] Trim trailing whitespace.
        [libata] Trim trailing whitespace.
        [libata] Add a bunch of PATA drivers.
        Rename libata-bmdma.c to libata-sff.c.
        libata: Grand renaming.
        Clean up drivers/ata/Kconfig a bit.
        [PATCH] CONFIG_PM=n slim: drivers/scsi/sata_sil*
        [PATCH] sata_via: Add SATA support for vt8237a
        [PATCH] libata: change path to libata in libata.tmpl
        [PATCH] libata: s/CONFIG_SCSI_SATA/CONFIG_[S]ATA/g in pci/quirks.c
        libata: Make sure drivers/ata is a separate Kconfig menu
        [libata] ata_piix: add missing kfree()
        ...
      a68aa1cc
    • L
      Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6 · a319a277
      Linus Torvalds 提交于
      * 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6: (217 commits)
        net/ieee80211: fix more crypto-related build breakage
        [PATCH] Spidernet: add ethtool -S (show statistics)
        [NET] GT96100: Delete bitrotting ethernet driver
        [PATCH] mv643xx_eth: restrict to 32-bit PPC_MULTIPLATFORM
        [PATCH] Cirrus Logic ep93xx ethernet driver
        r8169: the MMIO region of the 8167 stands behin BAR#1
        e1000, ixgb: Remove pointless wrappers
        [PATCH] Remove powerpc specific parts of 3c509 driver
        [PATCH] s2io: Switch to pci_get_device
        [PATCH] gt96100: move to pci_get_device API
        [PATCH] ehea: bugfix for register access functions
        [PATCH] e1000 disable device on PCI error
        drivers/net/phy/fixed: #if 0 some incomplete code
        drivers/net: const-ify ethtool_ops declarations
        [PATCH] ethtool: allow const ethtool_ops
        [PATCH] sky2: big endian
        [PATCH] sky2: fiber support
        [PATCH] sky2: tx pause bug fix
        drivers/net: Trim trailing whitespace
        [PATCH] ehea: IBM eHEA Ethernet Device Driver
        ...
      
      Manually resolved conflicts in drivers/net/ixgb/ixgb_main.c and
      drivers/net/sky2.c related to CHECKSUM_HW/CHECKSUM_PARTIAL changes by
      commit 84fa7933 that just happened to be
      next to unrelated changes in this update.
      a319a277
  2. 24 9月, 2006 16 次提交