[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1289644735.2218.8.camel@localhost>
Date: Sat, 13 Nov 2010 12:38:55 +0200
From: Artem Bityutskiy <dedekind1@...il.com>
To: Tejun Heo <tj@...nel.org>
Cc: axboe@...nel.dk, hch@...radead.org, linux-kernel@...r.kernel.org,
petero2@...ia.com, schwidefsky@...ibm.com,
heiko.carstens@...ibm.com, jack@...e.cz, akpm@...ux-foundation.org,
adilger.kernel@...ger.ca, tytso@....edu, mfasheh@...e.com,
joel.becker@...cle.com, aelder@....com, dm-devel@...hat.com,
drbd-dev@...ts.linbit.com, neilb@...e.de, leochen@...adcom.com,
sbranden@...adcom.com, chris.mason@...cle.com, swhiteho@...hat.com,
shaggy@...ux.vnet.ibm.com, joern@...fs.org,
konishi.ryusuke@....ntt.co.jp, reiserfs-devel@...r.kernel.org,
viro@...iv.linux.org.uk, linux-mtd@...ts.infradead.org
Subject: Re: [PATCH 1/5] mtd: fix bdev exclusive open bugs in
block2mtd::add_device()
Hi,
On Mon, 2010-11-01 at 17:15 +0100, Tejun Heo wrote:
> + if (!IS_ERR(bdev)) {
> + int ret;
> + ret = bd_claim(bdev, dev);
> + if (ret) {
> + blkdev_put(bdev,
> + FMODE_READ | FMODE_WRITE);
Would be a bit cleaner to define ea temporary variable:
fmode_t mode = FMODE_READ | FMODE_WRITE;
Would you to re-send with this little change please?
And ideally, 2 independent patches would be nicer because you fix 2
independent issues.
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists