All of lore.kernel.org
 help / color / mirror / Atom feed
* + drivers-dax-avoiding-potential-deadlock.patch added to -mm tree
@ 2017-04-11 20:58 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2017-04-11 20:58 UTC (permalink / raw)
  To: pushkar.iit, dan.j.williams, dave.jiang, jthumshirn,
	ross.zwisler, mm-commits


The patch titled
     Subject: drivers/dax/dax.c: avoid potential deadlock
has been added to the -mm tree.  Its filename is
     drivers-dax-avoiding-potential-deadlock.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/drivers-dax-avoiding-potential-deadlock.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/drivers-dax-avoiding-potential-deadlock.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 ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Pushkar Jambhlekar <pushkar.iit@gmail.com>
Subject: drivers/dax/dax.c: avoid potential deadlock

dax_dev_huge_fault() returns without releasing rcu_read_lock().  Make code
change to avoid this situation

Link: http://lkml.kernel.org/r/1491888405-7772-1-git-send-email-pushkar.iit@gmail.com
Signed-off-by: Pushkar Jambhlekar <pushkar.iit@gmail.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Dave Jiang <dave.jiang@intel.com>
Cc: Johannes Thumshirn <jthumshirn@suse.de>
Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

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

diff -puN drivers/dax/dax.c~drivers-dax-avoiding-potential-deadlock drivers/dax/dax.c
--- a/drivers/dax/dax.c~drivers-dax-avoiding-potential-deadlock
+++ a/drivers/dax/dax.c
@@ -590,7 +590,7 @@ static int dax_dev_huge_fault(struct vm_
 		rc = __dax_dev_pud_fault(dax_dev, vmf);
 		break;
 	default:
-		return VM_FAULT_FALLBACK;
+		rc = VM_FAULT_FALLBACK;
 	}
 	rcu_read_unlock();
 
_

Patches currently in -mm which might be from pushkar.iit@gmail.com are

drivers-dax-avoiding-potential-deadlock.patch
drivers-dax-changing-rc-value.patch
mm-include-linux-migrateh-fixing-checkpatch-warning-regarding-function-definition.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-04-11 20:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-11 20:58 + drivers-dax-avoiding-potential-deadlock.patch added to -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.