On Thu, Mar 22, 2018 at 03:24:14PM +, Al Viro wrote:
> On Wed, Mar 21, 2018 at 08:32:27AM +0100, Christoph Hellwig wrote:
>
> > - if (iocb->ki_list.next) {
> > + if (!list_empty_careful(iocb->ki_list.next)) {
>
> Umm... Why not list_empty_careful(&iocb->ki_list)?
Yes, that makes a lot m
On Wed, Mar 21, 2018 at 08:32:27AM +0100, Christoph Hellwig wrote:
> - if (iocb->ki_list.next) {
> + if (!list_empty_careful(iocb->ki_list.next)) {
Umm... Why not list_empty_careful(&iocb->ki_list)?
On Wed, Mar 21, 2018 at 08:32:27AM +0100, Christoph Hellwig wrote:
> Instead of handcoded non-null checks always initialize ki_list to an
> empty list and use list_empty / list_empty_careful on it. While we're
> at it also error out on a double call to kiocb_set_cancel_fn instead
> of ignoring it.
Instead of handcoded non-null checks always initialize ki_list to an
empty list and use list_empty / list_empty_careful on it. While we're
at it also error out on a double call to kiocb_set_cancel_fn instead
of ignoring it.
Signed-off-by: Christoph Hellwig
Acked-by: Jeff Moyer
Reviewed-by: Darr
4 matches
Mail list logo