public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
From: Shinichiro Kawasaki <shinichiro.kawasaki@wdc.com>
To: Bart Van Assche <bvanassche@acm.org>
Cc: "linux-block@vger.kernel.org" <linux-block@vger.kernel.org>,
	"mcgrof@kernel.org" <mcgrof@kernel.org>,
	"sw.prabhu6@gmail.com" <sw.prabhu6@gmail.com>,
	Chaitanya Kulkarni <kch@nvidia.com>
Subject: Re: [PATCH blktests v6 1/3] check,common,srp/rc: replace module removal with patient module removal
Date: Wed, 14 Jan 2026 12:10:18 +0000	[thread overview]
Message-ID: <aWeHiRQ4vkbS_0kE@shinmob> (raw)
In-Reply-To: <777aecd9-4978-450f-8688-74f85e24c372@acm.org>

On Jan 12, 2026 / 17:03, Bart Van Assche wrote:
> On 1/10/26 2:16 AM, Shin'ichiro Kawasaki wrote:
> > diff --git a/tests/srp/rc b/tests/srp/rc
> > index 47b9546..517733f 100755
> > --- a/tests/srp/rc
> > +++ b/tests/srp/rc
> > @@ -336,14 +336,14 @@ stop_srp_ini() {
> >   	log_out
> >   	for ((i=40;i>=0;i--)); do
> >   		remove_mpath_devs || return $?
> > -		_unload_module ib_srp >/dev/null 2>&1 && break
> > +		_patient_rmmod ib_srp >/dev/null 2>&1 && break
> >   		sleep 1
> >   	done
> 
> I don't think that this change is useful since there is a sleep statement
> just below the rmmod call. This change unnecessarily slows
> down this loop.
> 
> >   	if [ -e /sys/module/ib_srp ]; then
> >   		echo "Error: unloading kernel module ib_srp failed"
> >   		return 1
> >   	fi
> > -	_unload_module scsi_transport_srp || return $?
> > +	_patient_rmmod scsi_transport_srp || return $?
> >   }
> 
> This change shouldn't be necessary. Once the ib_srp kernel module
> has been unloaded, unloading scsi_transport_srp should succeed.

I see, I will drop the hunks above in the next spin. Thanks.

  reply	other threads:[~2026-01-14 12:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-10 10:16 [PATCH blktests v6 0/3] replace module removal with patient module removal Shin'ichiro Kawasaki
2026-01-10 10:16 ` [PATCH blktests v6 1/3] check,common,srp/rc: " Shin'ichiro Kawasaki
2026-01-13  1:03   ` Bart Van Assche
2026-01-14 12:10     ` Shinichiro Kawasaki [this message]
2026-01-10 10:16 ` [PATCH blktests v6 2/3] check: reimplement _unload_modules() with _patient_rmmod() Shin'ichiro Kawasaki
2026-01-10 10:16 ` [PATCH blktests v6 3/3] check: check reference count for modprobe --remove --wait success case Shin'ichiro Kawasaki

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=aWeHiRQ4vkbS_0kE@shinmob \
    --to=shinichiro.kawasaki@wdc.com \
    --cc=bvanassche@acm.org \
    --cc=kch@nvidia.com \
    --cc=linux-block@vger.kernel.org \
    --cc=mcgrof@kernel.org \
    --cc=sw.prabhu6@gmail.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox