* [PATCH -next 1/2] s390/cio: use DEFINE_SPINLOCK() for spinlock
@ 2021-03-29 9:40 Shixin Liu
2021-03-29 9:40 ` [PATCH -next 2/2] s390/cio: use DECLARE_WAIT_QUEUE_HEAD() for wait_queue Shixin Liu
2021-03-29 12:34 ` [PATCH -next 1/2] s390/cio: use DEFINE_SPINLOCK() for spinlock Vineeth Vijayan
0 siblings, 2 replies; 4+ messages in thread
From: Shixin Liu @ 2021-03-29 9:40 UTC (permalink / raw)
To: Vineeth Vijayan, Peter Oberparleiter, Heiko Carstens,
Vasily Gorbik, Christian Borntraeger
Cc: linux-s390, linux-kernel, Shixin Liu
spinlock can be initialized automatically with DEFINE_SPINLOCK()
rather than explicitly calling spin_lock_init().
Signed-off-by: Shixin Liu <liushixin2@huawei.com>
---
drivers/s390/cio/css.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/s390/cio/css.c b/drivers/s390/cio/css.c
index 253ab4e7a415..f01ef6325039 100644
--- a/drivers/s390/cio/css.c
+++ b/drivers/s390/cio/css.c
@@ -651,13 +651,12 @@ static void css_sch_todo(struct work_struct *work)
}
static struct idset *slow_subchannel_set;
-static spinlock_t slow_subchannel_lock;
+static DEFINE_SPINLOCK(slow_subchannel_lock);
static wait_queue_head_t css_eval_wq;
static atomic_t css_eval_scheduled;
static int __init slow_subchannel_init(void)
{
- spin_lock_init(&slow_subchannel_lock);
atomic_set(&css_eval_scheduled, 0);
init_waitqueue_head(&css_eval_wq);
slow_subchannel_set = idset_sch_new();
--
2.25.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH -next 2/2] s390/cio: use DECLARE_WAIT_QUEUE_HEAD() for wait_queue
2021-03-29 9:40 [PATCH -next 1/2] s390/cio: use DEFINE_SPINLOCK() for spinlock Shixin Liu
@ 2021-03-29 9:40 ` Shixin Liu
2021-03-29 12:34 ` Vineeth Vijayan
2021-03-29 12:34 ` [PATCH -next 1/2] s390/cio: use DEFINE_SPINLOCK() for spinlock Vineeth Vijayan
1 sibling, 1 reply; 4+ messages in thread
From: Shixin Liu @ 2021-03-29 9:40 UTC (permalink / raw)
To: Vineeth Vijayan, Peter Oberparleiter, Heiko Carstens,
Vasily Gorbik, Christian Borntraeger
Cc: linux-s390, linux-kernel, Shixin Liu
wait_queue_head_t can be initialized automatically with DECLARE_WAIT_QUEUE_HEAD()
rather than explicitly calling init_waitqueue_head().
Signed-off-by: Shixin Liu <liushixin2@huawei.com>
---
drivers/s390/cio/css.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/s390/cio/css.c b/drivers/s390/cio/css.c
index f01ef6325039..a974943c27da 100644
--- a/drivers/s390/cio/css.c
+++ b/drivers/s390/cio/css.c
@@ -652,13 +652,12 @@ static void css_sch_todo(struct work_struct *work)
static struct idset *slow_subchannel_set;
static DEFINE_SPINLOCK(slow_subchannel_lock);
-static wait_queue_head_t css_eval_wq;
+static DECLARE_WAIT_QUEUE_HEAD(css_eval_wq);
static atomic_t css_eval_scheduled;
static int __init slow_subchannel_init(void)
{
atomic_set(&css_eval_scheduled, 0);
- init_waitqueue_head(&css_eval_wq);
slow_subchannel_set = idset_sch_new();
if (!slow_subchannel_set) {
CIO_MSG_EVENT(0, "could not allocate slow subchannel set\n");
--
2.25.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH -next 2/2] s390/cio: use DECLARE_WAIT_QUEUE_HEAD() for wait_queue
2021-03-29 9:40 ` [PATCH -next 2/2] s390/cio: use DECLARE_WAIT_QUEUE_HEAD() for wait_queue Shixin Liu
@ 2021-03-29 12:34 ` Vineeth Vijayan
0 siblings, 0 replies; 4+ messages in thread
From: Vineeth Vijayan @ 2021-03-29 12:34 UTC (permalink / raw)
To: Shixin Liu, Peter Oberparleiter, Heiko Carstens, Vasily Gorbik,
Christian Borntraeger
Cc: linux-s390, linux-kernel
For both the patches,
Acked-by: Vineeth Vijayan <vneethv@linux.ibm.com>
I will correct the description, and Heiko/Vasily will pick this up and
will be part of the s390-tree patchset.
On 3/29/21 11:40 AM, Shixin Liu wrote:
> wait_queue_head_t can be initialized automatically with DECLARE_WAIT_QUEUE_HEAD()
> rather than explicitly calling init_waitqueue_head().
A minor checkpatch WARNING. I will modify this.
>
> Signed-off-by: Shixin Liu <liushixin2@huawei.com>
> ---
> drivers/s390/cio/css.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/s390/cio/css.c b/drivers/s390/cio/css.c
> index f01ef6325039..a974943c27da 100644
> --- a/drivers/s390/cio/css.c
> +++ b/drivers/s390/cio/css.c
> @@ -652,13 +652,12 @@ static void css_sch_todo(struct work_struct *work)
>
> static struct idset *slow_subchannel_set;
> static DEFINE_SPINLOCK(slow_subchannel_lock);
> -static wait_queue_head_t css_eval_wq;
> +static DECLARE_WAIT_QUEUE_HEAD(css_eval_wq);
> static atomic_t css_eval_scheduled;
>
> static int __init slow_subchannel_init(void)
> {
> atomic_set(&css_eval_scheduled, 0);
> - init_waitqueue_head(&css_eval_wq);
> slow_subchannel_set = idset_sch_new();
> if (!slow_subchannel_set) {
> CIO_MSG_EVENT(0, "could not allocate slow subchannel set\n");
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH -next 1/2] s390/cio: use DEFINE_SPINLOCK() for spinlock
2021-03-29 9:40 [PATCH -next 1/2] s390/cio: use DEFINE_SPINLOCK() for spinlock Shixin Liu
2021-03-29 9:40 ` [PATCH -next 2/2] s390/cio: use DECLARE_WAIT_QUEUE_HEAD() for wait_queue Shixin Liu
@ 2021-03-29 12:34 ` Vineeth Vijayan
1 sibling, 0 replies; 4+ messages in thread
From: Vineeth Vijayan @ 2021-03-29 12:34 UTC (permalink / raw)
To: Shixin Liu, Peter Oberparleiter, Heiko Carstens, Vasily Gorbik,
Christian Borntraeger
Cc: linux-s390, linux-kernel
Thank you.
Acked-by: Vineeth Vijayan <vneethv@linux.ibm.com>
On 3/29/21 11:40 AM, Shixin Liu wrote:
> spinlock can be initialized automatically with DEFINE_SPINLOCK()
> rather than explicitly calling spin_lock_init().
static spinlock
>
> Signed-off-by: Shixin Liu <liushixin2@huawei.com>
> ---
> drivers/s390/cio/css.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/s390/cio/css.c b/drivers/s390/cio/css.c
> index 253ab4e7a415..f01ef6325039 100644
> --- a/drivers/s390/cio/css.c
> +++ b/drivers/s390/cio/css.c
> @@ -651,13 +651,12 @@ static void css_sch_todo(struct work_struct *work)
> }
>
> static struct idset *slow_subchannel_set;
> -static spinlock_t slow_subchannel_lock;
> +static DEFINE_SPINLOCK(slow_subchannel_lock);
> static wait_queue_head_t css_eval_wq;
> static atomic_t css_eval_scheduled;
>
> static int __init slow_subchannel_init(void)
> {
> - spin_lock_init(&slow_subchannel_lock);
> atomic_set(&css_eval_scheduled, 0);
> init_waitqueue_head(&css_eval_wq);
> slow_subchannel_set = idset_sch_new();
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-03-29 12:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-29 9:40 [PATCH -next 1/2] s390/cio: use DEFINE_SPINLOCK() for spinlock Shixin Liu
2021-03-29 9:40 ` [PATCH -next 2/2] s390/cio: use DECLARE_WAIT_QUEUE_HEAD() for wait_queue Shixin Liu
2021-03-29 12:34 ` Vineeth Vijayan
2021-03-29 12:34 ` [PATCH -next 1/2] s390/cio: use DEFINE_SPINLOCK() for spinlock Vineeth Vijayan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox