Message ID | 20200514014302.2078182-1-ming.lei@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | block: fix build failure in case of !CONFIG_BLOCK | expand |
Can you please just move the function out of line? If we context switch it is by definition to performance critical enough to be an inline function bloating the callers..
On Wed, May 13, 2020 at 11:41:33PM -0700, Christoph Hellwig wrote: > Can you please just move the function out of line? If we context > switch it is by definition to performance critical enough to be an > inline function bloating the callers.. > Looks blk_io_schedule() is only called from CONFG_BLOCK code, so it is better to export it as one symbol. Thanks, Ming
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 5360696d85ff..bf99a723673b 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -4,6 +4,7 @@ #include <linux/sched.h> #include <linux/sched/clock.h> +#include <linux/sched/sysctl.h> #ifdef CONFIG_BLOCK @@ -27,7 +28,6 @@ #include <linux/percpu-refcount.h> #include <linux/scatterlist.h> #include <linux/blkzoned.h> -#include <linux/sched/sysctl.h> struct module; struct scsi_ioctl_command;