projects
/
platform
/
kernel
/
linux-starfive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bio: safeguard REQ_ALLOC_CACHE bio put
[platform/kernel/linux-starfive.git]
/
block
/
bio.c
diff --git
a/block/bio.c
b/block/bio.c
index
6c470a5
..
0a14af9
100644
(file)
--- a/
block/bio.c
+++ b/
block/bio.c
@@
-741,7
+741,7
@@
void bio_put(struct bio *bio)
return;
}
- if (
bio->bi_opf & REQ_ALLOC_CACHE
) {
+ if (
(bio->bi_opf & REQ_ALLOC_CACHE) && !WARN_ON_ONCE(in_interrupt())
) {
struct bio_alloc_cache *cache;
bio_uninit(bio);