From: Jens Axboe <axboe@kernel.dk>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Tejun Heo <tj@kernel.org>, Sitsofe Wheeler <sitsofe@yahoo.com>,
Borislav Petkov <bp@alien8.de>, Meelis Roos <mroos@linux.ee>,
Andrew Morton <akpm@linux-foundation.org>,
Kay Sievers <kay.sievers@vrfy.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH RESEND 2/3 v2.6.39-rc7] block: make disk_block_events() properly wait for work cancellation
Date: Wed, 18 May 2011 12:26:41 +0200 [thread overview]
Message-ID: <4DD39EE1.7080006@kernel.dk> (raw)
In-Reply-To: <BANLkTi=0_bv7s6=i2v-iP0vQmHHT3=tm8w@mail.gmail.com>
On 2011-05-18 11:46, Linus Torvalds wrote:
> On Tue, May 17, 2011 at 10:07 PM, Tejun Heo <tj@kernel.org> wrote:
>>
>>> Just make the semaphore protect the count - and you're done.
>>
>> Yeah, with that gone, we don't even need the open-coding inside
>> disk_check_events(). It can simply call syncing block and unblock.
>> But, do you want that in -rc7? Unnecessarily complicated as the
>> current code may be, converting the lock to mutex is a larger change
>> than adding an outer mutex and I think it would be better to do that
>> during the next cycle.
>
> Quite frankly. right now I think I need to just release 2.6.39, and
> then for 2.6.40 merge the trivial
>
> mutex_lock(&ev->mutex);
> if (!ev->block++)
> cancel_delayed_work_sync(&ev->dwork);
> mutex_unlock(&ev->mutex);
>
> with a cc: stable for backporting.
With these changes pushed to 2.6.40, I have the following sitting queued
up for 2.6.39, of which at least the performance regression and
blk-throttle fix really should go in. I'll let Tejun voice in on his
three changes. I would have pushed this a few days ago, but this thread
had it postponed a bit.
git://git.kernel.dk/linux-2.6-block.git for-linus
Jens Axboe (1):
scsi: remove performance regression due to async queue run
Shaohua Li (1):
block: don't delay blk_run_queue_async
Tejun Heo (3):
block: unexport DISK_EVENT_MEDIA_CHANGE for legacy/fringe drivers
cdrom: always check_disk_change() on open
block: rescan partitions on invalidated devices on -ENOMEDIA too
Vivek Goyal (1):
blk-throttle: Use task_subsys_state() to determine a task's blkio_cgroup
block/blk-cgroup.c | 7 +++++++
block/blk-cgroup.h | 3 +++
block/blk-core.c | 4 +++-
block/blk-throttle.c | 9 ++++-----
block/cfq-iosched.c | 11 +++++------
drivers/block/DAC960.c | 1 -
drivers/block/amiflop.c | 1 -
drivers/block/ataflop.c | 1 -
drivers/block/floppy.c | 1 -
drivers/block/paride/pcd.c | 1 -
drivers/block/paride/pd.c | 1 -
drivers/block/paride/pf.c | 1 -
drivers/block/swim.c | 1 -
drivers/block/swim3.c | 1 -
drivers/block/ub.c | 1 -
drivers/block/xsysace.c | 1 -
drivers/cdrom/cdrom.c | 6 +++---
drivers/cdrom/gdrom.c | 1 -
drivers/cdrom/viocd.c | 1 -
drivers/message/i2o/i2o_block.c | 1 -
drivers/s390/char/tape_block.c | 1 -
drivers/scsi/scsi_lib.c | 20 ++++++++++++++++----
drivers/scsi/scsi_scan.c | 2 ++
fs/block_dev.c | 27 ++++++++++++++++++---------
include/scsi/scsi_device.h | 1 +
25 files changed, 62 insertions(+), 43 deletions(-)
--
Jens Axboe
next prev parent reply other threads:[~2011-05-18 10:26 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-17 10:27 [PATCH RESEND 1/3 v2.6.39-rc7] block: don't use non-syncing event blocking in disk_check_events() Tejun Heo
2011-05-17 10:28 ` [PATCH RESEND 2/3 v2.6.39-rc7] block: remove non-syncing __disk_block_events() and fold it into disk_block_events() Tejun Heo
2011-05-17 10:28 ` [PATCH RESEND 2/3 v2.6.39-rc7] block: make disk_block_events() properly wait for work cancellation Tejun Heo
2011-05-17 14:46 ` Linus Torvalds
2011-05-17 15:11 ` Tejun Heo
2011-05-17 15:15 ` Linus Torvalds
2011-05-17 15:27 ` Tejun Heo
2011-05-17 22:40 ` Linus Torvalds
2011-05-18 5:07 ` Tejun Heo
2011-05-18 9:46 ` Linus Torvalds
2011-05-18 10:04 ` Tejun Heo
2011-05-18 11:07 ` Tejun Heo
2011-05-18 10:26 ` Jens Axboe [this message]
2011-05-17 15:47 ` [PATCH UPDATED " Tejun Heo
2011-05-17 19:34 ` Jens Axboe
2011-05-17 20:22 ` Borislav Petkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DD39EE1.7080006@kernel.dk \
--to=axboe@kernel.dk \
--cc=akpm@linux-foundation.org \
--cc=bp@alien8.de \
--cc=kay.sievers@vrfy.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mroos@linux.ee \
--cc=sitsofe@yahoo.com \
--cc=tj@kernel.org \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.