Add a missing __must_hold() annotation. Enable lock context analysis in the Makefile. Signed-off-by: Bart Van Assche --- drivers/block/aoe/Makefile | 2 ++ drivers/block/aoe/aoecmd.c | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/block/aoe/Makefile b/drivers/block/aoe/Makefile index b7545ce2f1b0..27bff6359a56 100644 --- a/drivers/block/aoe/Makefile +++ b/drivers/block/aoe/Makefile @@ -3,5 +3,7 @@ # Makefile for ATA over Ethernet # +CONTEXT_ANALYSIS := y + obj-$(CONFIG_ATA_OVER_ETH) += aoe.o aoe-y := aoeblk.o aoechr.o aoecmd.o aoedev.o aoemain.o aoenet.o diff --git a/drivers/block/aoe/aoecmd.c b/drivers/block/aoe/aoecmd.c index a4744a30a8af..54c57b9f8894 100644 --- a/drivers/block/aoe/aoecmd.c +++ b/drivers/block/aoe/aoecmd.c @@ -1193,6 +1193,7 @@ noskb: if (buf) */ static int ktio(int id) + __must_hold(&iocq[id].lock) { struct frame *f; struct list_head *pos;