On Wed, Oct 08, 2014 at 04:46:40PM -0400, Trond Myklebust wrote: > You cannot call pnfs_put_lseg_async() more than once per lseg, so it > is really an inappropriate way to deal with a refcount issue. > > Instead, replace it with a function that decrements the refcount, and > puts the final 'free' operation (which is incompatible with locks) on > the workqueue. How about calling the clear_request_commit layout driver operation from a workqueue? That seems like a much saner approach. -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html