Re: [PATCH] scsi: st: Fix lock leak in st_ioctl()

From: Bart Van Assche

Date: Wed May 20 2026 - 13:08:34 EST


On 5/20/26 12:52 AM, Hongling Zeng wrote:
  The original code is correct. st_common_ioctl() releases &STp->lock
  internally, so there is no lock leak.
Indeed. See also the annotations in drivers/scsi/st.c in this patch series: "[PATCH 00/36] Enable lock context analysis for most SCSI drivers"
(https://lore.kernel.org/linux-scsi/20260312211636.3245119-1-bvanassche@xxxxxxx/).

Bart.