mirror of
https://github.com/torvalds/linux.git
synced 2026-11-06 21:58:01 +01:00
scsi: be2iscsi: Enable lock context analysis
Document locking requirements by annotating locking requirements with __must_hold(). Enable lock context analysis for the be2iscsi driver by setting CONTEXT_ANALYSIS in the Makefile. Cc: Ketan Mukadam <ketan.mukadam@broadcom.com> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Link: https://patch.msgid.link/e50dc59c2e48c84442e959e17989fb436eac6810.1790360262.git.bvanassche@acm.org Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
This commit is contained in:
parent
bbee7e5b4f
commit
901ade3fa1
|
|
@ -4,6 +4,8 @@
|
|||
#
|
||||
#
|
||||
|
||||
CONTEXT_ANALYSIS := y
|
||||
|
||||
obj-$(CONFIG_BE2ISCSI) += be2iscsi.o
|
||||
|
||||
be2iscsi-y := be_iscsi.o be_main.o be_mgmt.o be_cmds.o
|
||||
|
|
|
|||
|
|
@ -1117,6 +1117,7 @@ static void
|
|||
be_complete_io(struct beiscsi_conn *beiscsi_conn,
|
||||
struct iscsi_task *task,
|
||||
struct common_sol_cqe *csol_cqe)
|
||||
__must_hold(&beiscsi_conn->conn->session->back_lock)
|
||||
{
|
||||
struct beiscsi_io_task *io_task = task->dd_data;
|
||||
struct be_status_bhs *sts_bhs =
|
||||
|
|
@ -1185,6 +1186,7 @@ static void
|
|||
be_complete_logout(struct beiscsi_conn *beiscsi_conn,
|
||||
struct iscsi_task *task,
|
||||
struct common_sol_cqe *csol_cqe)
|
||||
__must_hold(&beiscsi_conn->conn->session->back_lock)
|
||||
{
|
||||
struct iscsi_logout_rsp *hdr;
|
||||
struct beiscsi_io_task *io_task = task->dd_data;
|
||||
|
|
@ -1212,6 +1214,7 @@ static void
|
|||
be_complete_tmf(struct beiscsi_conn *beiscsi_conn,
|
||||
struct iscsi_task *task,
|
||||
struct common_sol_cqe *csol_cqe)
|
||||
__must_hold(&beiscsi_conn->conn->session->back_lock)
|
||||
{
|
||||
struct iscsi_tm_rsp *hdr;
|
||||
struct iscsi_conn *conn = beiscsi_conn->conn;
|
||||
|
|
@ -1268,6 +1271,7 @@ static void
|
|||
be_complete_nopin_resp(struct beiscsi_conn *beiscsi_conn,
|
||||
struct iscsi_task *task,
|
||||
struct common_sol_cqe *csol_cqe)
|
||||
__must_hold(&beiscsi_conn->conn->session->back_lock)
|
||||
{
|
||||
struct iscsi_nopin *hdr;
|
||||
struct iscsi_conn *conn = beiscsi_conn->conn;
|
||||
|
|
@ -1423,6 +1427,7 @@ static void hwi_complete_cmd(struct beiscsi_conn *beiscsi_conn,
|
|||
static unsigned int
|
||||
beiscsi_complete_pdu(struct beiscsi_conn *beiscsi_conn,
|
||||
struct pdu_base *phdr, void *pdata, unsigned int dlen)
|
||||
__must_hold(&beiscsi_conn->conn->session->back_lock)
|
||||
{
|
||||
struct beiscsi_hba *phba = beiscsi_conn->phba;
|
||||
struct iscsi_conn *conn = beiscsi_conn->conn;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user