Re: [PATCH] move BKL down a little in setfl

From: Linus Torvalds (torvalds@transmeta.com)
Date: Wed Aug 21 2002 - 17:50:27 EST


On Wed, 21 Aug 2002, Matthew Wilcox wrote:
>
> Nothing spectacular here, just push the BKL down a little.

This exits with the BKL held, as far as I can tell:

> + lock_kernel();
> + if ((arg ^ filp->f_flags) & FASYNC) {
> + if (filp->f_op && filp->f_op->fasync) {
> + int error;
> + error = filp->f_op->fasync(fd, filp, (arg & FASYNC) != 0);
> + if (error < 0)
> + return error;
                                ^^^^^^^^^^^^
Here.

                Linus

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



This archive was generated by hypermail 2b29 : Fri Aug 23 2002 - 22:00:23 EST