Message ID | 20190405113423.14495-2-nsaenzjulienne@suse.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | staging: vchiq: use interruptible waits | expand |
On Fri, Apr 05, 2019 at 01:34:20PM +0200, Nicolas Saenz Julienne wrote: > This reverts commit ff5979ad86368425b7da3a25f4e84650b51ff5fd. > --- Git kind of sets you up for failure with reverts... Fix the subject, add a commit message and a Signed off by etc. We need all the regular stuff. See commit 75ae193626de ("dm: revert 8f50e358153d ("dm: limit the max bio size as BIO_MAX_PAGES * PAGE_SIZE")") for an example of how to do it nicely. regards, dan carpenter
On Fri, 2019-04-05 at 15:02 +0300, Dan Carpenter wrote: > On Fri, Apr 05, 2019 at 01:34:20PM +0200, Nicolas Saenz Julienne wrote: > > This reverts commit ff5979ad86368425b7da3a25f4e84650b51ff5fd. > > --- > > Git kind of sets you up for failure with reverts... > > Fix the subject, add a commit message and a Signed off by etc. We need > all the regular stuff. See commit 75ae193626de ("dm: revert > 8f50e358153d ("dm: limit the max bio size as BIO_MAX_PAGES * > PAGE_SIZE")") for an example of how to do it nicely. > Will do, Thanks! > regards, > dan carpenter >
diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c index dd4898861b83..bfc064a5f884 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c @@ -541,7 +541,7 @@ create_pagelist(char __user *buf, size_t count, unsigned short type) (g_cache_line_size - 1)))) { char *fragments; - if (down_killable(&g_free_fragments_sema)) { + if (down_interruptible(&g_free_fragments_sema) != 0) { cleanup_pagelistinfo(pagelistinfo); return NULL; }