Re: [PATCH 1/1] ipc/mqueue.c: Drag unneeded code out of locks
From: Steven Stewart-Gallus
Date: Sat Nov 15 2014 - 00:42:42 EST
Hello, thank you for the criticism.
> It's probably better to do this as three or four separate patches.
Really? Alright if you insist I'll do the next version as multiple
patches.
> Well yes, that's what EMFILE means but "too_many_open_files" doesn't
> make sense in this context!
Fair enough, I'll rename it in the next version.
> Thatsabug. It only requires CAP_SYS_RESOURCE if we're trying with
> queues_count >= queues_max.
Right, that was dumb of me.
> This test isn't really needed.
I don't follow. If the queue creation is not rejected then the
resource user has to be accounted for right? And we can't add the
resource to accounting if it is not created right?
Thank you,
Steven Stewart-Gallus
--
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/