[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20160103115630.GA9803@infradead.org>
Date: Sun, 3 Jan 2016 03:56:31 -0800
From: Christoph Hellwig <hch@...radead.org>
To: Markus Pargmann <mpa@...gutronix.de>
Cc: Jens Axboe <axboe@...nel.dk>, linux-kernel@...r.kernel.org,
nbd-general@...ts.sourceforge.net, kernel@...gutronix.de,
Oleg Nesterov <oleg@...hat.com>,
Christoph Hellwig <hch@...radead.org>
Subject: Re: [PATCH 2/5] nbd: Remove signal usage
Hi Markus,
this looks great!
Reviewed-by: Christoph Hellwig <hch@....de>
One thing I noticed, which might be a good cleanup in the future:
> - spin_lock_irqsave(&nbd->tasks_lock, flags);
> nbd->task_recv = current;
> - spin_unlock_irqrestore(&nbd->tasks_lock, flags);
It seems like task_{send,recv} are only used for the files showing
the pids. Maybe you should just store the pids directly in the
nbd_device structure and also keep the sysfs file around for the
life time of that structure.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists