From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Return-Path: Sender: Tejun Heo Date: Mon, 19 Mar 2018 11:22:37 -0700 From: Tejun Heo To: Bart Van Assche Cc: Jens Axboe , linux-block@vger.kernel.org, Christoph Hellwig , Hannes Reinecke , Ming Lei , Johannes Thumshirn , Oleksandr Natalenko , Martin Steigerwald , stable@vger.kernel.org Subject: Re: [PATCH] block: Change a rcu_read_{lock,unlock}_sched() pair into rcu_read_{lock,unlock}() Message-ID: <20180319182237.GF519464@devbig577.frc2.facebook.com> References: <20180319180100.7012-1-bart.vanassche@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20180319180100.7012-1-bart.vanassche@wdc.com> List-ID: On Mon, Mar 19, 2018 at 11:01:00AM -0700, Bart Van Assche wrote: > Since neither the RCU-protected code in blk_queue_enter() nor > blk_queue_usage_counter_release() sleeps, regular RCU protection > is sufficient. Note: scsi_device_quiesce() does not have to be > modified since it already uses synchronize_rcu(). > > Reported-by: Tejun Heo > Fixes: 3a0a529971ec ("block, scsi: Make SCSI quiesce and resume work reliably") > Signed-off-by: Bart Van Assche > Cc: Hannes Reinecke > Cc: Ming Lei > Cc: Christoph Hellwig > Cc: Johannes Thumshirn > Cc: Tejun Heo > Cc: Oleksandr Natalenko > Cc: Martin Steigerwald > Cc: stable@vger.kernel.org # v4.15 Acked-by: Tejun Heo It'd be great to add a comment to clarify the pairing. Thanks. -- tejun