On Tue, 05 Apr 2011 16:34:17 -0700
Ben Greear <[email protected]> wrote:

> On 04/05/2011 04:26 PM, Jeff Layton wrote:
> 
> > Does the attached patch fix it? It's probably stable material if so...
> 
> I'll test your patch.  I verified that cifs_file is NULL in cifsFileInfo_put
> and protecting against that also solves the problem.
> 

I'd probably prefer the patch I'm suggesting. I worry that turning
cifsFileInfo_put into a no-op for NULL pointers might paper over future
bugs.

> >
> > FWIW, cifs doesn't handle O_DIRECT at all.
> 
> I know..and I warn my users when the open() call fails, but I still
> let them attempt the file open.  Seems a decent test case after all :)
> 

Definitely. It's a cifs bug for sure, just pointing out that it
probably isn't going to give you what you expect. As Steve points out
forcedirectio might give you something closer to this, but proper
O_DIRECT support is still on the to-do list.

-- 
Jeff Layton <[email protected]>
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to