a few cleanup patches
Volker Lendecke
Volker.Lendecke at SerNet.DE
Thu Oct 24 12:44:33 MDT 2013
On Thu, Oct 24, 2013 at 09:59:19AM -0700, Jeremy Allison wrote:
> There's a behavior change in this hunk I think might need
> addressing.
>
> Setting "oplock_request = NO_OPLOCK" here loses any
> INTERNAL_OPEN_ONLY flag that was set in oplock_request.
>
> This matters due to the following code in grant_fsp_oplock_type()
> which is called immediately after:
>
> if (oplock_request & INTERNAL_OPEN_ONLY) {
> /* No oplocks on internal open. */
> fsp->oplock_type = NO_OPLOCK;
> DEBUG(10,("grant_fsp_oplock_type: oplock type 0x%x on file %s\n",
> fsp->oplock_type, fsp_str_dbg(fsp)));
> return;
> }
>
> I'm trying (long term) to get rid of INTERNAL_OPEN_ONLY
> but at the moment it's still used, so I think the
> following fix is needed.
>
> Please review and apply if you agree.
Lets revert the patchset that was accidentially pushed and
then lets rethink the whole thing.
Volker
--
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de
More information about the samba-technical
mailing list