[pnfs] [PATCH 12/28] pnfs: BUG: spinlock is held while calling alloc_lseg

Benny Halevy bhalevy at panasas.com
Thu Mar 13 09:15:48 EDT 2008


Applied onto the pnfs branch.

Thanks!

Benny

On Mar. 11, 2008, 21:31 +0200, Fred Isaman <iisaman at citi.umich.edu> wrote:
> From: Fred <iisaman at citi.umich.edu>
> 
> FIXME - this is just a reminder that the bug exists.
> 
> Signed-off-by: Fred <iisaman at citi.umich.edu>
> ---
>  fs/nfs/pnfs.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c
> index 7a7379d..56aa1bf 100644
> --- a/fs/nfs/pnfs.c
> +++ b/fs/nfs/pnfs.c
> @@ -665,6 +665,7 @@ pnfs_inject_layout(struct pnfs_layout_type *lo,
>  	struct pnfs_layout_segment *lseg;
>  
>  	dprintk("%s Begin\n", __FUNCTION__);
> +	/* FIXME - BUG - this is called while holding nfsi->lo_lock spinlock */
>  	lseg = PNFS_LD_IO_OPS(lo)->alloc_lseg(lo, lgr);
>  	if (!lseg || IS_ERR(lseg)) {
>  		if (!lseg)



More information about the pNFS mailing list