Linux s390 Architecture development
 help / color / mirror / Atom feed
From: Vasily Gorbik <gor@linux.ibm.com>
To: Harald Freudenberger <freude@linux.ibm.com>
Cc: dengler@linux.ibm.com, linux-s390@vger.kernel.org,
	Heiko Carstens <hca@linux.ibm.com>,
	Alexander Gordeev <agordeev@linux.ibm.com>,
	fcallies@linux.ibm.com
Subject: Re: [PATCH v4 0/1] Use mutex_lock_killable() in ap_bus_force_rescan()
Date: Mon, 20 Jul 2026 17:04:26 +0200	[thread overview]
Message-ID: <ttihb7e@ub.hpns> (raw)
In-Reply-To: <20260709072500.55706-1-freude@linux.ibm.com>

On Thu, Jul 09, 2026 at 09:24:59AM +0200, Harald Freudenberger wrote:
> A deep dive into the AP bus code and zcrypt device driver about the
> usage of mutex locking showed that there is one questionable call in
> ap_bus.c in function ap_bus_force_rescan(). This function may be
> called in kernel and process context. In both contexts only one info
> is important: was there a AP bus scan running and did it result in
> some updates on the AP devices. So only true/false is returned but no
> info like -EINTR. But still the mutex lock call should be
> interruptible to be able to kill a user space program blocked forever
> on this. So this patch replaces mutex_lock_interruptible() with
> mutex_lock_killable() to  be able to handle SIGKILL especially in user
> space process context.
> 
> v1 - initial version
> v2 - with v1 came up some discussion from Holger and Heiko. Heiko especially
>      wanted me to rephrase the header of the patch.
>      However v2 went out with a rewrite of the code as discussed and suggested
>      by Holger but Heikos complain were not addressed.
> v3 - now and finally I rephrased the patch header. Let's see what feedback
>      I'll get for this now.
> v4 - Rephrased the subject, Reviewed-by updated
> 
> Harald Freudenberger (1):
>   s390/ap: Use mutex_lock_killable() in ap_bus_force_rescan()
> 
>  drivers/s390/crypto/ap_bus.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Applied, thank you!

      parent reply	other threads:[~2026-07-20 15:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-09  7:24 [PATCH v4 0/1] Use mutex_lock_killable() in ap_bus_force_rescan() Harald Freudenberger
2026-07-09  7:25 ` [PATCH v4 1/1] s390/ap: " Harald Freudenberger
2026-07-20 15:04 ` Vasily Gorbik [this message]

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=ttihb7e@ub.hpns \
    --to=gor@linux.ibm.com \
    --cc=agordeev@linux.ibm.com \
    --cc=dengler@linux.ibm.com \
    --cc=fcallies@linux.ibm.com \
    --cc=freude@linux.ibm.com \
    --cc=hca@linux.ibm.com \
    --cc=linux-s390@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox