projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
382cf63
)
bsg: Add sparse annotations to bsg_request_fn()
author
Bart Van Assche
<bart.vanassche@sandisk.com>
Mon, 26 Sep 2016 02:54:38 +0000
(19:54 -0700)
committer
Jens Axboe
<axboe@fb.com>
Mon, 14 Nov 2016 16:57:03 +0000
(09:57 -0700)
Avoid that sparse complains about unbalanced lock actions.
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/bsg-lib.c
patch
|
blob
|
blame
|
history
diff --git
a/block/bsg-lib.c
b/block/bsg-lib.c
index 650f427d915be22bd1a6bc88f21083de8c924a15..b2a61e3ecb1472ce6287f810979e216530d7920e 100644
(file)
--- a/
block/bsg-lib.c
+++ b/
block/bsg-lib.c
@@
-161,6
+161,8
@@
failjob_rls_job:
* Drivers/subsys should pass this to the queue init function.
*/
void bsg_request_fn(struct request_queue *q)
+ __releases(q->queue_lock)
+ __acquires(q->queue_lock)
{
struct device *dev = q->queuedata;
struct request *req;