Re: [PATCH] sas_scsi_host: Convert to use the kthread API

From: James Bottomley
Date: Sun Apr 22 2007 - 17:38:28 EST


On Sun, 2007-04-22 at 20:38 +0100, Christoph Hellwig wrote:
> On Thu, Apr 19, 2007 at 05:37:53PM -0700, Andrew Morton wrote:
> > On Thu, 19 Apr 2007 01:58:38 -0600
> > "Eric W. Biederman" <ebiederm@xxxxxxxxxxxx> wrote:
> >
> > > From: Eric W. Biederman <ebiederm@xxxxxxxxxxxx>
> > >
> > > This patch modifies the sas scsi host thread startup
> > > to use kthread_run not kernel_thread and deamonize.
> > > kthread_run is slightly simpler and more maintainable.
> > >
> >
> > Again, I'll rename this to "partially convert...". This driver should be
> > using kthread_should_stop() and kthread_stop() rather than the
> > apparently-unnecessary ->queue_thread_kill thing.
> >
> > This driver was merged two and a half years after the kthread API was
> > available. Our coding-vs-reviewing effort is out of balance.
>
> Here's a full conversion.

Changelog and cc to linux-scsi, and I think it can go in ... not that it
matters; nothing ever activates this code inside libsas anyway ...

James


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/