public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [GIT PULL] block fixes for 2.6.32-rc
@ 2009-10-28 18:51 Jens Axboe
  2009-10-28 19:00 ` Linus Torvalds
  0 siblings, 1 reply; 5+ messages in thread
From: Jens Axboe @ 2009-10-28 18:51 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Linux Kernel

Hi Linus,

Two important one-liners, both fixing a regression. Please pull.

  git://git.kernel.dk/linux-2.6-block.git for-linus

Mark McLoughlin (1):
      block: silently error unsupported empty barriers too

Neil Brown (1):
      block: use after free bug in __blkdev_get

 block/blk-core.c |    2 +-
 fs/block_dev.c   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/block/blk-core.c b/block/blk-core.c
index ac0fa10..71da511 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -1161,7 +1161,7 @@ static int __make_request(struct request_queue *q, struct bio *bio)
 	const unsigned int ff = bio->bi_rw & REQ_FAILFAST_MASK;
 	int rw_flags;
 
-	if (bio_rw_flagged(bio, BIO_RW_BARRIER) && bio_has_data(bio) &&
+	if (bio_rw_flagged(bio, BIO_RW_BARRIER) &&
 	    (q->next_ordered == QUEUE_ORDERED_NONE)) {
 		bio_endio(bio, -EOPNOTSUPP);
 		return 0;
diff --git a/fs/block_dev.c b/fs/block_dev.c
index 9cf4b92..8bed055 100644
--- a/fs/block_dev.c
+++ b/fs/block_dev.c
@@ -1248,8 +1248,8 @@ static int __blkdev_get(struct block_device *bdev, fmode_t mode, int for_part)
 			bd_set_size(bdev, (loff_t)bdev->bd_part->nr_sects << 9);
 		}
 	} else {
-		put_disk(disk);
 		module_put(disk->fops->owner);
+		put_disk(disk);
 		disk = NULL;
 		if (bdev->bd_contains == bdev) {
 			if (bdev->bd_disk->fops->open) {

-- 
Jens Axboe


^ permalink raw reply related	[flat|nested] 5+ messages in thread
* [GIT PULL] block fixes for 2.6.32-rc
@ 2009-11-03 19:40 Jens Axboe
  0 siblings, 0 replies; 5+ messages in thread
From: Jens Axboe @ 2009-11-03 19:40 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Linux Kernel

Hi Linus,

Two small comment "regressions" from Alberto, which got screwed up
during some of the early .32 block commits. And then a fixup for the
previous sync hang fix, I had modified it slightly after it had been
tested. You should never do that... The last two fixes are for CFQ, both
fixing regressions introduced recently.

Please pull!

  git://git.kernel.dk/linux-2.6-block.git for-linus

Alberto Bertogli (2):
      bio_put(): add bio_clone() to the list of functions in the comment
      Fix bio_alloc() and bio_kmalloc() documentation

Jens Axboe (2):
      backing-dev: bdi sb prune should be in the unregister path, not destroy
      cfq-iosched: fix bad return value cfq_should_preempt()

Shaohua Li (1):
      cfq-iosched: limit coop preemption

 block/cfq-iosched.c |   19 ++++++++++++++++---
 fs/bio.c            |   28 ++++++++++++++--------------
 mm/backing-dev.c    |    3 ++-
 3 files changed, 32 insertions(+), 18 deletions(-)

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-11-03 19:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-28 18:51 [GIT PULL] block fixes for 2.6.32-rc Jens Axboe
2009-10-28 19:00 ` Linus Torvalds
2009-10-28 19:10   ` Jens Axboe
2009-10-28 19:33     ` Jens Axboe
  -- strict thread matches above, loose matches on Subject: below --
2009-11-03 19:40 Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox