stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Patch "staging: lustre: mdc: Make IT_OPEN take lookup bits lock" has been added to the 4.10-stable tree
@ 2017-05-11  8:25 gregkh
       [not found] ` <CY4PR11MB17513A806206DED46E1BCBE3CBED0@CY4PR11MB1751.namprd11.prod.outlook.com>
  0 siblings, 1 reply; 2+ messages in thread
From: gregkh @ 2017-05-11  8:25 UTC (permalink / raw)
  To: paf, gregkh, john.hammond, jsimmons, lai.siyao, oleg.drokin
  Cc: stable, stable-commits


This is a note to let you know that I've just added the patch titled

    staging: lustre: mdc: Make IT_OPEN take lookup bits lock

to the 4.10-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     staging-lustre-mdc-make-it_open-take-lookup-bits-lock.patch
and it can be found in the queue-4.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.


>From 26d2bf1e71525f4c0f644820c30d1344633159e2 Mon Sep 17 00:00:00 2001
From: Patrick Farrell <paf@cray.com>
Date: Sat, 28 Jan 2017 19:05:14 -0500
Subject: staging: lustre: mdc: Make IT_OPEN take lookup bits lock

From: Patrick Farrell <paf@cray.com>

commit 26d2bf1e71525f4c0f644820c30d1344633159e2 upstream.

An earlier commit accidentally changed handling of IT_OPEN,
making it take the MDS_INODELOCK_UPDATE bits lock instead of
MDS_INODELOCK_LOOKUP. This does not cause any known bugs.

Signed-off-by: Patrick Farrell <paf@cray.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-8842
Reviewed-on: https://review.whamcloud.com/23797
Fixes: 70a251f68dea ("staging: lustre: obd: decruft md_enqueue() and md_intent_lock()"
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
 drivers/staging/lustre/lustre/mdc/mdc_locks.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/staging/lustre/lustre/mdc/mdc_locks.c
+++ b/drivers/staging/lustre/lustre/mdc/mdc_locks.c
@@ -722,7 +722,7 @@ int mdc_enqueue(struct obd_export *exp,
 		LASSERT(!policy);
 
 		saved_flags |= LDLM_FL_HAS_INTENT;
-		if (it->it_op & (IT_OPEN | IT_UNLINK | IT_GETATTR | IT_READDIR))
+		if (it->it_op & (IT_UNLINK | IT_GETATTR | IT_READDIR))
 			policy = &update_policy;
 		else if (it->it_op & IT_LAYOUT)
 			policy = &layout_policy;


Patches currently in stable-queue which might be from paf@cray.com are

queue-4.10/staging-lustre-mdc-make-it_open-take-lookup-bits-lock.patch

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Patch "staging: lustre: mdc: Make IT_OPEN take lookup bits lock" has been added to the 4.10-stable tree
       [not found] ` <CY4PR11MB17513A806206DED46E1BCBE3CBED0@CY4PR11MB1751.namprd11.prod.outlook.com>
@ 2017-05-11 12:22   ` gregkh
  0 siblings, 0 replies; 2+ messages in thread
From: gregkh @ 2017-05-11 12:22 UTC (permalink / raw)
  To: Patrick Farrell
  Cc: john.hammond@intel.com, jsimmons@infradead.org,
	lai.siyao@intel.com, oleg.drokin@intel.com,
	stable@vger.kernel.org, stable-commits@vger.kernel.org

On Thu, May 11, 2017 at 12:10:19PM +0000, Patrick Farrell wrote:
> Greg et al.,
> 
> 
> Can someone copied here say why this was pushed to stable?  When I wrote the
> patch, my impression was the code was wrong but it didn't cause any problems.
>  I thought this was basically cleanup.  If someone found a problem associated
> with this patch, I'd be curious to hear.

I thought it was needed, based on the patch and the fixes: field.  But
you are right, it's not really necessary, so I'll go drop it from the
queue.  Thanks for noticing this and letting me know.

greg k-h

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-05-11 12:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-11  8:25 Patch "staging: lustre: mdc: Make IT_OPEN take lookup bits lock" has been added to the 4.10-stable tree gregkh
     [not found] ` <CY4PR11MB17513A806206DED46E1BCBE3CBED0@CY4PR11MB1751.namprd11.prod.outlook.com>
2017-05-11 12:22   ` gregkh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).