1. 02 Jan, 2007 3 commits
    • Parag Warudkar's avatar
      [PATCH] selinux: fix selinux_netlbl_inode_permission() locking · 9883a13c
      Parag Warudkar authored
      do not call a sleeping lock API in an RCU read section.
      lock_sock_nested can sleep, its BH counterpart doesn't.
      selinux_netlbl_inode_permission() needs to use the BH counterpart
      unconditionally.
      
      Compile tested.
      
      From: Ingo Molnar <mingo@elte.hu>
      
      added BH disabling, because this function can be called from non-atomic
      contexts too, so a naked bh_lock_sock() would be deadlock-prone.
      
      Boot-tested the resulting kernel.
      Signed-off-by: default avatarParag Warudkar <paragw@paragw.zapto.org>
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      9883a13c
    • Jens Axboe's avatar
      [PATCH] cfq-iosched: merging problem · ec8acb69
      Jens Axboe authored
      Two issues:
      
      - The final return 1 should be a return 0, otherwise comparing cfqq is
        a noop.
      
      - bio_sync() only checks the sync flag, while rq_is_sync() checks both
        for READ and sync. The latter is what we want. Expand the bio check
        to include reads, and relax the restriction to allow merging of async
        io into sync requests.
      
      In the future we want to clean up the SYNC logic, right now it means
      both sync request (such as READ and O_DIRECT WRITE) and unplug-on-issue.
      Leave that for later.
      Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      ec8acb69
    • Alan's avatar
      [PATCH] libata: fix combined mode · dc3c3377
      Alan authored
      This is a slight variant on the patch I posted December 16th to fix
      libata combined mode handling. The only real change is that we now
      correctly also reserve BAR1,2,4. That is basically a neatness issue.
      
      Jeff was unhappy about two things
      
      1. That it didn't work in the case of one channel native one channel
      legacy.
      
      This is a silly complaint because the SFF layer in libata doesn't handle
      this case yet anyway.
      
      2. The case where combined mode is in use and IDE=n.
      
      In this case the libata quirk code reserves the resources in question
      correctly already.
      
      Once the combined mode stuff is redone properly (2.6.21) then the entire
      mess turns into a single pci_request_regions() for all cases and all the
      ugly resource hackery goes away.
      
      I'm sending this now rather than after running full test suites so that
      it can get the maximal testing in a short time. I'll be running tests on
      this after lunch.
      Signed-off-by: default avatarAlan Cox <alan@redhat.com>
      Cc: Jeff Garzik <jgarzik@pobox.com>
      Acked-by: default avatarAlessandro Suardi <alessandro.suardi@gmail.com>
      Acked-by: default avatarTheodore Tso <tytso@mit.edu>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      dc3c3377
  2. 01 Jan, 2007 3 commits
  3. 31 Dec, 2006 9 commits
  4. 30 Dec, 2006 25 commits