mirror of
https://github.com/torvalds/linux.git
synced 2026-11-06 21:58:01 +01:00
scsi: iSCSI transport: Prepare for enabling lock context analysis
Document locking requirements with __must_hold(). Signed-off-by: Bart Van Assche <bvanassche@acm.org> Link: https://patch.msgid.link/72bd8921b4ed0a58bd83beed2981ec48372b56fd.1790360262.git.bvanassche@acm.org Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
This commit is contained in:
parent
20026b0b55
commit
d5f024412d
|
|
@ -2243,6 +2243,7 @@ static void iscsi_ep_disconnect(struct iscsi_cls_conn *conn, bool is_active)
|
|||
static void iscsi_if_disconnect_bound_ep(struct iscsi_cls_conn *conn,
|
||||
struct iscsi_endpoint *ep,
|
||||
bool is_active)
|
||||
__must_hold(&conn->ep_mutex)
|
||||
{
|
||||
/* Check if this was a conn error and the kernel took ownership */
|
||||
spin_lock_irq(&conn->lock);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user