mirror of
https://github.com/torvalds/linux.git
synced 2026-11-06 21:58:01 +01:00
scsi: aacraid: Enable lock context analysis
Document the aac_send_reset_adapter() locking requirements with __must_hold(). Annotate functions that perform conditional locking with __context_unsafe(). Enable lock context analysis. Signed-off-by: Bart Van Assche <bvanassche@acm.org> Link: https://patch.msgid.link/09b6a1659d968bdc94c01f8215bbb4e41af5ebdc.1790360262.git.bvanassche@acm.org Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
This commit is contained in:
parent
a51e9948d1
commit
44bb77a1af
|
|
@ -1,6 +1,8 @@
|
|||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
# Adaptec aacraid
|
||||
|
||||
CONTEXT_ANALYSIS := y
|
||||
|
||||
obj-$(CONFIG_SCSI_AACRAID) := aacraid.o
|
||||
|
||||
aacraid-objs := linit.o aachba.o commctrl.o comminit.o commsup.o \
|
||||
|
|
|
|||
|
|
@ -1043,6 +1043,7 @@ struct aac_reset_iop {
|
|||
};
|
||||
|
||||
static int aac_send_reset_adapter(struct aac_dev *dev, void __user *arg)
|
||||
__must_hold(&dev->ioctl_mutex)
|
||||
{
|
||||
struct aac_reset_iop reset;
|
||||
int retval;
|
||||
|
|
|
|||
|
|
@ -475,6 +475,7 @@ int aac_queue_get(struct aac_dev * dev, u32 * index, u32 qid, struct hw_fib * hw
|
|||
int aac_fib_send(u16 command, struct fib *fibptr, unsigned long size,
|
||||
int priority, int wait, int reply, fib_callback callback,
|
||||
void *callback_data)
|
||||
__context_unsafe(/*conditional locking*/)
|
||||
{
|
||||
struct aac_dev * dev = fibptr->dev;
|
||||
struct hw_fib * hw_fib = fibptr->hw_fib_va;
|
||||
|
|
@ -698,6 +699,7 @@ int aac_fib_send(u16 command, struct fib *fibptr, unsigned long size,
|
|||
|
||||
int aac_hba_send(u8 command, struct fib *fibptr, fib_callback callback,
|
||||
void *callback_data)
|
||||
__context_unsafe(/*conditional locking*/)
|
||||
{
|
||||
struct aac_dev *dev = fibptr->dev;
|
||||
int wait;
|
||||
|
|
@ -1466,6 +1468,7 @@ static void aac_schedule_bus_scan(struct aac_dev *aac)
|
|||
}
|
||||
|
||||
static int _aac_reset_adapter(struct aac_dev *aac, int forced, u8 reset_type)
|
||||
__context_unsafe(/*conditional locking*/)
|
||||
{
|
||||
int index, quirks;
|
||||
int retval;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user