+ drivers-isdn-misdn-teic-use-rwlock-runtime-init.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     drivers/isdn/mISDN/tei.c: use rwlock runtime init 
has been added to the -mm tree.  Its filename is
     drivers-isdn-misdn-teic-use-rwlock-runtime-init.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
out what to do about this

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: drivers/isdn/mISDN/tei.c: use rwlock runtime init 
From: Steven Rostedt <rostedt@xxxxxxxxxxx>

__RW_LOCK_UNLOCKED(lock) is meant for compile time initializations. 
rwlock_init(&lock) is used for run time initialization.

This patch converts drivers/isdn/mISDN/tei.c to initialize the mrg->lock
rwlock.

Signed-off-by: Steven Rostedt <srostedt@xxxxxxxxxx>
Cc: Karsten Keil <kkeil@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 drivers/isdn/mISDN/tei.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/isdn/mISDN/tei.c~drivers-isdn-misdn-teic-use-rwlock-runtime-init drivers/isdn/mISDN/tei.c
--- a/drivers/isdn/mISDN/tei.c~drivers-isdn-misdn-teic-use-rwlock-runtime-init
+++ a/drivers/isdn/mISDN/tei.c
@@ -1287,7 +1287,7 @@ create_teimanager(struct mISDNdevice *de
 	if (!mgr)
 		return -ENOMEM;
 	INIT_LIST_HEAD(&mgr->layer2);
-	mgr->lock = __RW_LOCK_UNLOCKED(mgr->lock);
+	rwlock_init(&mgr->lock);
 	skb_queue_head_init(&mgr->sendq);
 	mgr->nextid = 1;
 	mgr->lastid = MISDN_ID_NONE;
_

Patches currently in -mm which might be from rostedt@xxxxxxxxxxx are

linux-next.patch
net-ipv4-netfilter-nf_nat_rulec-update-rwlock-initialization-for-nat_table.patch
drivers-isdn-misdn-teic-use-rwlock-runtime-init.patch
checkpatch-struct-file_operations-should-normally-be-const.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux