Re: [RFT][PATCH] aic79xx: remove busyq

Alexey Dobriyan
2005-05-29T09:16:58Z

On Sunday 29 May 2005 11:46, Jeff Garzik wrote:
> This changes the aic79xx driver to use the standard Linux SCSI queueing
> code, rather than its own. After applying this patch, NO behavior
> changes should be seen.
>
> The patch is against 2.6.12-rc5, but probably applies OK to recent 2.6.x
> kernels.

s/PF_FREEZE/PF_NOFREEZE/ to apply to recent ones.

> --- a/drivers/scsi/aic7xxx/aic79xx_osm.c
> +++ b/drivers/scsi/aic7xxx/aic79xx_osm.c

> @@ -2478,18 +2045,10 @@ ahd_linux_dv_thread(void *data)
> * Complete thread creation.
> */
> lock_kernel();
> -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,60)
> - /*
> - * Don't care about any signals.
> - */
> - siginitsetinv(&current->blocked, 0);
>
> - daemonize();
> - sprintf(current->comm, "ahd_dv_%d", ahd->unit);
> -#else
> daemonize("ahd_dv_%d", ahd->unit);
> current->flags |= PF_FREEZE;
> -#endif
> +
> unlock_kernel();
>
> while (1) {