Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux...
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 25 Mar 2011 15:41:20 +0000 (17:41 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 25 Mar 2011 15:41:20 +0000 (17:41 +0200)
* 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6: (9356 commits)
  [media] rc: update for bitop name changes
  fs: simplify iget & friends
  fs: pull inode->i_lock up out of writeback_single_inode
  fs: rename inode_lock to inode_hash_lock
  fs: move i_wb_list out from under inode_lock
  fs: move i_sb_list out from under inode_lock
  fs: remove inode_lock from iput_final and prune_icache
  fs: Lock the inode LRU list separately
  fs: factor inode disposal
  fs: protect inode->i_state with inode->i_lock
  lib, arch: add filter argument to show_mem and fix private implementations
  SLUB: Write to per cpu data when allocating it
  slub: Fix debugobjects with lockless fastpath
  autofs4: Do not potentially dereference NULL pointer returned by fget() in autofs_dev_ioctl_setpipefd()
  autofs4 - remove autofs4_lock
  autofs4 - fix d_manage() return on rcu-walk
  autofs4 - fix autofs4_expire_indirect() traversal
  autofs4 - fix dentry leak in autofs4_expire_direct()
  autofs4 - reinstate last used update on access
  vfs - check non-mountpoint dentry might block in __follow_mount_rcu()
  ...

NOTE!

This merge commit was created to fix compilation error. The block
tree was merged upstream and removed the 'elv_queue_empty()'
function which the new 'mtdswap' driver is using. So a simple
merge of the mtd tree with upstream does not compile. And the
mtd tree has already be published, so re-basing it is not an option.

To fix this unfortunate situation, I had to merge upstream into the
mtd-2.6.git tree without committing, put the fixup patch on top of
this, and then commit this. The result is that we do not have commits
which do not compile.

In other words, this merge commit "merges" 3 things: the MTD tree, the
upstream tree, and the fixup patch.

13 files changed:
1  2 
arch/arm/plat-omap/include/plat/onenand.h
arch/cris/Kconfig
drivers/mtd/maps/physmap_of.c
drivers/mtd/mtd_blkdevs.c
drivers/mtd/nand/Kconfig
drivers/mtd/nand/mpc5121_nfc.c
drivers/mtd/nand/mxc_nand.c
drivers/mtd/nand/omap2.c
drivers/mtd/onenand/omap2.c
drivers/mtd/sm_ftl.c
include/linux/mtd/blktrans.h
lib/Kconfig
lib/Makefile

Simple merge
Simple merge
index 650511304030797052702e55a132497182c2c02c,e0a2373bf0e2fe5ad6fc9423d5db19f96e25de5a..a534e1f0c34844b39c0fd03ce9ee070f88438a9b
@@@ -119,15 -119,6 +119,15 @@@ static int do_blktrans_request(struct m
        }
  }
  
-       return !elv_queue_empty(dev->rq);
 +int mtd_blktrans_cease_background(struct mtd_blktrans_dev *dev)
 +{
 +      if (kthread_should_stop())
 +              return 1;
 +
++      return dev->bg_stop;
 +}
 +EXPORT_SYMBOL_GPL(mtd_blktrans_cease_background);
 +
  static int mtd_blktrans_thread(void *arg)
  {
        struct mtd_blktrans_dev *dev = arg;
        while (!kthread_should_stop()) {
                int res;
  
++              dev->bg_stop = false;
                if (!req && !(req = blk_fetch_request(rq))) {
-                               background_done = 1;
 +                      if (tr->background && !background_done) {
 +                              spin_unlock_irq(rq->queue_lock);
 +                              mutex_lock(&dev->lock);
 +                              tr->background(dev);
 +                              mutex_unlock(&dev->lock);
 +                              spin_lock_irq(rq->queue_lock);
 +                              /*
 +                               * Do background processing just once per idle
 +                               * period.
 +                               */
++                              background_done = !dev->bg_stop;
 +                              continue;
 +                      }
                        set_current_state(TASK_INTERRUPTIBLE);
  
                        if (kthread_should_stop())
@@@ -198,8 -172,8 +199,10 @@@ static void mtd_blktrans_request(struc
        if (!dev)
                while ((req = blk_fetch_request(rq)) != NULL)
                        __blk_end_request_all(req, -ENODEV);
--      else
++      else {
++              dev->bg_stop = true;
                wake_up_process(dev->thread);
++      }
  }
  
  static int blktrans_open(struct block_device *bdev, fmode_t mode)
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 66bec4bf2b0a516b9b1cc1ab06bd0dbe6363d054,26529ebd59ccf3872fddca921c141184915fcf62..1bbd9f28924564d188f2a01bc2c14a3ee49f691b
@@@ -36,6 -36,6 +36,7 @@@ struct mtd_blktrans_dev 
        struct mtd_info *mtd;
        struct mutex lock;
        int devnum;
++      bool bg_stop;
        unsigned long size;
        int readonly;
        int open;
diff --cc lib/Kconfig
Simple merge
diff --cc lib/Makefile
Simple merge